Re: SCP backup script

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Jeremy C. Reed
Date:  
To: plug-discuss
Subject: Re: SCP backup script
On Tue, 25 Jan 2005, Mike Hoy wrote:

> scp -rp /home/user/music/*.mp3
> root@192.168.2.161:/mnt/LaptopBackup/user/music/
>
> and all of the *.mp3's copy over.
>
> that would be fine if I had all of my *.mp3 files in one big directory
> but i don't
>
> in /music i have more directories for each band..
>
> i would just like to copy an entire directory with all of it's sub
> directories.


Get rid of the "/*.mp3" and just scp -rp the entire /home/user/music
directory (assuming that is okay).

You may want to use rsync if you will be repeating this.

Jeremy C. Reed

                 BSD News, BSD tutorials, BSD links
                http://www.bsdnewsletter.com/


---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss