Re: [RSync] Re: How to delete files older than X on backup during sync?

2008-11-09 Thread Ashley M. Kirchner
Henri S wrote: You could find these files using find. Then, copy these to another directory and sycn the directory which has only the new files. If you were cleaver you could hard link the files to save space before the sync. But maybe someone on this list will know how to do this with just rsync

Re: How to delete files older than X on backup during sync?

2008-11-09 Thread Henri S
If you were to use LBackup and run a backup once per day and set the rotations to 20. Then after 20 days, the old files would be removed from the backup. -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/

Re: How to delete files older than X on backup during sync?

2008-11-09 Thread Henri S
You could find these files using find. Then, copy these to another directory and sycn the directory which has only the new files. If you were cleaver you could hard link the files to save space before the sync. But maybe someone on this list will know how to do this with just rsync. This is just o

Re: Behaviour of /./ in from file on version 3.0.4

2008-11-09 Thread Wayne Davison
On Tue, Nov 04, 2008 at 10:21:31AM -0700, Leon Vanderploeg wrote: > In the previous version of rsync a /./ in the from file would cause > the previous path information to be dropped for the destination > directory. In 3.0.4, it appears the . is being translated into the > current (working) directo

Re: Problem with extended ACLs in 3.0.4?

2008-11-09 Thread Andrew Gideon
On Sun, 02 Nov 2008 16:10:23 -0500, Matt McCutchen wrote: > Fixing this in a way that works with all combinations of mask-requiring > and non-mask-requiring systems will take some care. Any thoughts on this? The code has changed significantly from when I did my futzing around in 2.6.2, so - eve

Re: rsync for the brave

2008-11-09 Thread Matt McCutchen
On Sun, 2008-11-09 at 17:50 -0700, Ashley M. Kirchner wrote: > Matt McCutchen wrote: > > I'm surprised that the exclude doesn't work. Could you post your whole > > rsync command line so I can see if anything else might be interfering? > Keep in mind that this is the Win32 ported version (cwRsy

Re: [RSync] Re: rsync for the brave

2008-11-09 Thread Ashley M. Kirchner
Matt McCutchen wrote: I'm surprised that the exclude doesn't work. Could you post your whole rsync command line so I can see if anything else might be interfering? Keep in mind that this is the Win32 ported version (cwRsync) that I'm using. "C:\Program Files\cwRsync\bin\rsync.exe" -arvz

Re: How to delete files older than X on backup during sync?

2008-11-09 Thread Matt McCutchen
Matthew, please remember to CC rsync@lists.samba.org . On Sun, 2008-11-09 at 15:46 -0500, Matthew Monaco wrote: > You could use touch to update all of the files in your backup-dir. Then > use my original suggestion to delete files that are older than two weeks. I assume you mean, touch only the

Re: How to delete files older than X on backup during sync?

2008-11-09 Thread Matt McCutchen
On Sun, 2008-11-09 at 19:03 +0100, Thomas von Eyben wrote: > On Sun, Nov 9, 2008 at 4:34 PM, Matt McCutchen <[EMAIL PROTECTED]> wrote: > > I think it would make more sense to count from the time the backup file > > is saved. To do that, use a separate --backup-dir each day (e.g., > > --backup-dir=

Re: How to delete files older than X on backup during sync?

2008-11-09 Thread Thomas von Eyben
On Sun, Nov 9, 2008 at 4:34 PM, Matt McCutchen <[EMAIL PROTECTED]> wrote: > On Sun, 2008-11-09 at 03:18 -0500, Matthew Monaco wrote: >> Thomas von Eyben wrote: >> > I wish to use rsync to create a backup BUT only keep the files for a >> > limited period of time, EG two weeks. >> > I have not yet be

Re: How to delete files older than X on backup during sync?

2008-11-09 Thread Matt McCutchen
On Sun, 2008-11-09 at 03:18 -0500, Matthew Monaco wrote: > Thomas von Eyben wrote: > > I wish to use rsync to create a backup BUT only keep the files for a > > limited period of time, EG two weeks. > > I have not yet been able to figure out how to do this inside rsync > > (while the backup is being

Re: rsync for the brave

2008-11-09 Thread Matt McCutchen
On Sat, 2008-11-08 at 23:07 -0700, Ashley M. Kirchner wrote: > Anyone here run rsync on a Win32 platform? I know, I'm a glutton for > pain. Anyway, I'm using 'cwrsync' on one system to copy files from a > local drive (F:) to a mapped (network) drive (Y:). The problem I'm > having is with that in

Re: rsync for the brave

2008-11-09 Thread Michal Soltys
Ashley M. Kirchner wrote: It's not a folder that Windows will allow me to delete, so consequently rsync will attempt to do that and fail. Adding --exclude="Network Trash Folder" has absolutely no effect what so ever. Any suggestions? You could use --ignore-errors - with this, rsync w

Re: How to delete files older than X on backup during sync?

2008-11-09 Thread Matthew Monaco
You can do something like "rsync OPTIONS --rsync-path="find /root-dir/ -mtime +14 -delete ; rsync" SRC DEST" although, to be safe you'll probably want something like: "rsync OPTIONS --rsync-path="find /root-dir/ -type f -mtime +14 -delete ; rsync" --prune-empty-dirs SRC DEST" I'm not sure wheth