How to handle these variables in rsync exclude file?
Posted
by
linux
on Server Fault
See other posts from Server Fault
or by linux
Published on 2010-10-26T21:51:53Z
Indexed on
2011/03/08
0:12 UTC
Read the original article
Hit count: 527
I have an ignore file for rsync but I can't figure out how to ignore this string of file names and the username:
backup/cpbackup/daily/username/homedir/mail/cur/1244452567.H511146P7355.dwhs45.dwhs.net,S=2161:2,
backup/cpbackup/daily/username/homedir/mail/cur/1244455430.H516330P14494.dwhs45.dwhs.net,S=4062:2,
I tried this:
backup/cpbackup/daily/*/homedir/mail/cur/*
and this:
*.*.dwhs45.dwhs.*
But of course that would be too easy.
Basically I just want to not transfer all the mail in the /cur/ directory for all users to the backups.
© Server Fault or respective owner