[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [TEKNIK] Scripting af SSH



2009/9/15 Jens Bang <sslug@sslug>:
> Jeg har et backup script der tager ne backup af min laptops HD til en HD i min
> server, som er NFS mountet i /mnt/backup. Scriptet fungerer på denne måde:
>
> 1. Opret nyt directory i /mnt/backup.
> 2. cp -al fra nyeste backup over i det nye directory.
> 3. rsync fra laptop til det nye directory.
>
> Mit problem er at den cp -al tager en evighed (over 20 minutter) når jeg gør
> det fra min laptop, mens den kun tager ca. 2 minutter hvis jeg logger ind på
> serveren via SSH.
>
> Mit spørgsmål er nu: Hvordan kan jeg automatisere dette login via bash? Jeg
> ville gerne undgå at skulle indtaste password hver gang jeg kører backup'en.
>
> --
>
>        |\     _,,,---,,_       Greetings, Jens
>  ZZZzz /,`.-'`'    -.  ;-;;,_
>      |,4-  ) )-,_. ,\ (  `'-' sslug@sslug
>     '---''(_/--'  `-'\_)
> ----------------------------------------------------
> My reality check just bounced.
>
>
For autoexecution ved ssh login tilpass din ~/.profile eller ~/.bashrc
For passwordless login tjek ssh-key-gen og ssh-copy-id.


-- 
 .''`.   Admir Trakic
: :' :   Debian Gnu/Linux user #99405
`. `'
  `-


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2009-10-01, 02:01 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *