Rysnc Schedule
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. Any ideas how I can accomplish this? -- View this message in context: http://www.nabble.com/Rysnc-Schedule-tf4104577.html#a11672997 Sent from the Samba - rsync mailing list archive at Nabble.com. -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: Rysnc Schedule
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 - June 30. Once July 1 comes >> along, I want to keep June 2 - July 1 and delete June 1, and so forth. >> >> Any ideas how I can accomplish this? > > Do the backups with rsync and write a shell script that runs every night > that deletes the 31st (and greater) backup. > > ..Chuck.. > > > -- > http://www.quantumlinux.com > Quantum Linux Laboratories, LLC. > ACCELERATING Business with Open Technology > > "The measure of the restoration lies in the extent to which we apply > social values more noble than mere monetary profit." - FDR > > 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0 > -- > To unsubscribe or change options: > https://lists.samba.org/mailman/listinfo/rsync > Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html > > -- View this message in context: http://www.nabble.com/Rysnc-Schedule-tf4104577.html#a11678999 Sent from the Samba - rsync mailing list archive at Nabble.com. -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: Rysnc Schedule
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 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 might make it difficult to > re-use portions of the disk... > > ..Chuck.. > > > -- > http://www.quantumlinux.com > Quantum Linux Laboratories, LLC. > ACCELERATING Business with Open Technology > > "The measure of the restoration lies in the extent to which we apply > social values more noble than mere monetary profit." - FDR > > 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0 > -- > To unsubscribe or change options: > https://lists.samba.org/mailman/listinfo/rsync > Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html > > -- View this message in context: http://www.nabble.com/Rysnc-Schedule-tf4104577.html#a11688212 Sent from the Samba - rsync mailing list archive at Nabble.com. -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: Rysnc Schedule
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. 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 delete >> the >> 1st day and add the 31st? > > Yes. Just set a backup interval of "daily" with 30 snapshots in the > configuration file. If you like, you can also add other intervals, > e.g., weekly snapshots for the past 10 weeks. > > Matt > -- > To unsubscribe or change options: > https://lists.samba.org/mailman/listinfo/rsync > Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html > > -- View this message in context: http://www.nabble.com/Rysnc-Schedule-tf4104577.html#a11699492 Sent from the Samba - rsync mailing list archive at Nabble.com. -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Rysnc Original Date
Is it possible to keep the original date of the file with rsync rather than once it is copied, giving it today's date? -- View this message in context: http://www.nabble.com/Rysnc-Original-Date-tf4193496.html#a11925612 Sent from the Samba - rsync mailing list archive at Nabble.com. -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html