[ale] Struggling with rsync
Jim Kinney
jim.kinney at gmail.com
Thu Oct 1 11:05:10 EDT 2015
try /opt/sw/template/proc and exclude the entire directory and not just
all contents. If it's a bind mount from /proc it gets a redirect and
I'm not sure if it's "same filesystem" or not. Nor am I sure if that
matters with rsync.
On Thu, 2015-10-01 at 10:33 -0400, Chris Fowler wrote:
> I've always struggled with the exclude option of rsync and I've
> thought that I had this right until I woke up and saw rsync
> transmitting kcore!
>
> I have some chroots where I have done a bind mount of proc. I don't
> want rsync archiving those. Below is how I've formulated the command
> in perl to spawn the real rsync. I have moved the real rsync to
> rsync.bin. I'm using a backup system to backup / via rsync, but I
> can't specify exclude options in this system. I'm detecting the
> system on the server and then adding options to limit, log, and
> exclude.
>
> system "$RSYNC_BIN -
> -exclude={/dev/*,/proc/*,/opt/sw/template/proc/*,/sys/*,$log_path} -
> -bwlimit=$limit_KB --log-file=$log_path @ARGV";
>
> The problem is with '/opt/sw/template/proc/*' What should that be?
>
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
--
James P. Kinney III
Every time you stop a school, you will have to build a jail. What you
gain at one end you lose at the other. It's like feeding a dog on his
own tail. It won't fatten the dog.
- Speech 11/23/1900 Mark Twain
http://heretothereideas.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20151001/f83f66da/attachment.html>
More information about the Ale
mailing list