Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #172346
| From | Clive Menzies <clive@clivemenzies.co.uk> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Longstanding rsync script no longer excludes - SOLVED |
| Date | 2016-09-17 18:20 +0200 |
| Message-ID | <siqvn-4N4-1@gated-at.bofh.it> (permalink) |
| References | <silm2-1qx-27@gated-at.bofh.it> <siqvo-4N4-3@gated-at.bofh.it> <siqvo-4N4-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 17/09/16 13:32, Mike Bird wrote
>> $rsync $rsync_opts $password FileServer::rsync \
>> /home/backup/home/ > /var/rsync/FileServer.$NOW.log
>> I don't see where the $excludes you built is actually used.
>>
>
On 17/09/16 13:44, Clive Menzies wrote:
> The script wasn't changed and I've always assumed the $rsync-opts took
> care of this. The script was copied from someone else and adapted.
>
> # Good rsync options for FileServer_backups.
> rsync_opts="-av --delete --delete-excluded"
Thanks to prompting by Mike, I've changed the way excludes are handled
and it works :-)
OLD version:
# Good rsync options for uhuru_backups.
rsync_opts="-av --delete --delete-excluded"
<snip>
# A list of files and directories that do not need to be backed up
exclude_list="music funstuff cma/TransitStuff lost+found/"
excludes=""
for exclude in $exclude_list; do
excludes="$excludes --exclude=$exclude"
WORKING version:
# Good rsync options for uhuru_backups.
rsync_opts="-av --exclude-from=exclude_list --delete --delete-excluded"
The exclude_list is a file with one excluded directory per line with an
asterisk at the end directory name.
Regards
Clive
--
Clive Menzies
http://freecriticalthinking.org
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Longstanding rsync script no longer excludes Clive Menzies <clive@clivemenzies.co.uk> - 2016-09-17 12:50 +0200
Re: Longstanding rsync script no longer excludes Eduardo M KALINOWSKI <eduardo@kalinowski.com.br> - 2016-09-17 14:30 +0200
Re: Longstanding rsync script no longer excludes - SOLVED Clive Menzies <clive@clivemenzies.co.uk> - 2016-09-17 18:20 +0200
Crontab doesn't complete a script - was Re: Longstanding rsync script no longer excludes Clive Menzies <clive@clivemenzies.co.uk> - 2016-09-19 13:20 +0200
Re: Crontab doesn't complete a script "Thomas Schmitt" <scdbackup@gmx.net> - 2016-09-19 13:40 +0200
Re: Crontab doesn't complete a script Clive Menzies <clive@clivemenzies.co.uk> - 2016-09-19 23:20 +0200
Re: Crontab doesn't complete a script - SOLVED Clive Menzies <clive@clivemenzies.co.uk> - 2016-09-20 00:00 +0200
Re: Crontab doesn't complete a script "Thomas Schmitt" <scdbackup@gmx.net> - 2016-09-20 00:10 +0200
Re: Crontab doesn't complete a script Clive Menzies <clive@clivemenzies.co.uk> - 2016-09-20 01:10 +0200
csiph-web