Re: Rysnc Schedule

2007-07-19 Thread sparty2809
I guess I should have been clearer. I know how to delete files/directories. I am just not sure how to delete say the 31st and so forth. Chuck Wolber wrote: On Wed, 18 Jul 2007, sparty2809 wrote: I understand how to do the rsync part, but how would I delete the files? In linux, you

Re: Rysnc Schedule

2007-07-19 Thread Rick Romero
/usr/bin/find /var/backup/* -mtime +30 -exec rm -rf {} \; Anything older than 30 days gets deleted from /var/backup/ On Thu, 2007-07-19 at 05:46 -0700, sparty2809 wrote: I guess I should have been clearer. I know how to delete files/directories. I am just not sure how to delete say the 31st

Re: Rysnc Schedule

2007-07-19 Thread Matt McCutchen
On 7/19/07, Rick Romero [EMAIL PROTECTED] wrote: /usr/bin/find /var/backup/* -mtime +30 -exec rm -rf {} \; Anything older than 30 days gets deleted from /var/backup/ That's no good: it deletes individual files that happen to be older than 30 days from even yesterday's backup. This is better:

Re: Rysnc Schedule

2007-07-19 Thread Rick Romero
On Thu, 2007-07-19 at 09:30 -0400, Matt McCutchen wrote: On 7/19/07, Rick Romero [EMAIL PROTECTED] wrote: /usr/bin/find /var/backup/* -mtime +30 -exec rm -rf {} \; Anything older than 30 days gets deleted from /var/backup/ That's no good: it deletes individual files that happen to be

Re: Rysnc Schedule

2007-07-19 Thread Matt McCutchen
On 7/19/07, Chris [EMAIL PROTECTED] wrote: Never used it before. Does it have a gui? No. You edit the configuration file /etc/rsnapshot.conf and then run rsnapshot from the command line with the name of the backup interval, like rsnapshot daily. Please don't be put off by having to edit a

Re: Rysnc Schedule

2007-07-19 Thread Matt McCutchen
On 7/19/07, Chris [EMAIL PROTECTED] wrote: I know how to use the command prompt, was just curious if it had a gui. OK. Please don't take any offense at my offering a little extra support in case you were a user who needed it. So this can backup for 30 days and once 30 days comes up, it will

Re: Rysnc Schedule

2007-07-19 Thread sparty2809
Sorry, I didn't mean to come off rude. I appreciate the help. I will look into it and see how it works. Thanks for all the suggestions. Matt McCutchen-3 wrote: On 7/19/07, Chris [EMAIL PROTECTED] wrote: I know how to use the command prompt, was just curious if it had a gui. OK.

Re: Rysnc Schedule

2007-07-19 Thread Rick Romero
About 4 hours after my reply I had a functional rsnapshot install - what took me so long (besides having 'real' work to do ;) was trying to figure out how to split up my vpopmail/domains directories so the rsync wouldn't take so long (because of so many files/directories). I ended up

Re: Rysnc Schedule

2007-07-18 Thread Matt McCutchen
On 7/18/07, sparty2809 [EMAIL PROTECTED] wrote: What I want to do is use rsync to back up a folder to an external drive. I would like to keep 30 days worth. For example: I have backups of June 1 - June 30. Once July 1 comes along, I want to keep June 2 - July 1 and delete June 1, and so forth.

Re: Rysnc Schedule

2007-07-18 Thread Chuck Wolber
On Wed, 18 Jul 2007, sparty2809 wrote: What I want to do is use rsync to back up a folder to an external drive. I would like to keep 30 days worth. For example: I have backups of June 1 - June 30. Once July 1 comes along, I want to keep June 2 - July 1 and delete June 1, and so forth.

Re: Rysnc Schedule

2007-07-18 Thread sparty2809
I understand how to do the rsync part, but how would I delete the files? Chuck Wolber wrote: On Wed, 18 Jul 2007, sparty2809 wrote: What I want to do is use rsync to back up a folder to an external drive. I would like to keep 30 days worth. For example: I have backups of June 1 -

Re: Rysnc Schedule

2007-07-18 Thread Chuck Wolber
On Wed, 18 Jul 2007, sparty2809 wrote: I understand how to do the rsync part, but how would I delete the files? In linux, you delete files with the rm command... In windows you'd probably want to use deltree... Or, you could get really fancy and use directed charges of thermite, although that

Re: Rysnc Schedule

2007-07-18 Thread Charles Marcus
On 7/18/2007, Chuck Wolber ([EMAIL PROTECTED]) wrote: In linux, you delete files with the rm command... OT follow-up... Is there an alternate way to remove an entire directory *without* traversing the directory itself? -- Best regards, Charles -- To unsubscribe or change options:

Re: Rysnc Schedule

2007-07-18 Thread Matt McCutchen
On 7/18/07, Charles Marcus [EMAIL PROTECTED] wrote: Is there an alternate way to remove an entire directory *without* traversing the directory itself? No filesystem that I know of provides one, although it would be great to be able to issue a single unlink or rmdir call and have the filesystem