[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Struggling with rsync
- Subject: [ale] Struggling with rsync
- From: cfowler at outpostsentinel.com (Chris Fowler)
- Date: Thu, 1 Oct 2015 10:33:42 -0400 (EDT)
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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20151001/37f42fd9/attachment.html>