rsync very selectively
- From: David Fletcher <dave@xxxxxxxxxxxxxxxx>
- Date: Fri, 08 Jun 2012 17:41:39 +0100
I want to use rsync to copy a very small selection of files from a
desktop to a server. rsync works OK for me except to do this. I want to
firstly exclude everything, then use an include file for the bits I do
want.
I found out from the usual google search how to exclude everything.
I can get the include file to copy .bash* but no matter what I try I
can't persuade it to recursively do directories, in this case the
scripts directory for starters. I've tried it with -r, --recursive,
--dirs, with a training /, without a trailing /, trailing /* ......
nothing works for me and I can't find a how-to.
So, in desperation I'm asking for help!
The command I'm running from inside a script as user jf is
rsync -av --recursive --include-from=/home/jf/scripts/BackupIncludes
--delete-excluded --exclude='*' --bwlimit=3000 /home/jf/
jf@server:/home/jf/DesktopHomeBackup
and the BackupIncludes file contains
scripts/
.bash*
Can anybody help with this please?
Dave
--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
- Prev by Date: Re: How to create a bash shell script in ubuntu 12.04
- Next by Date: Re: Ubuntu 12.04 LTS removing unity and installing GNOME
- Previous by thread: How to create a bash shell script in ubuntu 12.04
- Next by thread: Re: need to restore deleted partitions, system still running
- Index(es):
Relevant Pages
|