Tarsnap-generations icon indicating copy to clipboard operation
Tarsnap-generations copied to clipboard

Not deleting old archives

Open yugrotavele opened this issue 11 years ago • 3 comments

I'm running Arch Linux using bash 4.2.045 and tarsnap 1.0.33 My crontab 0 23 * * * /root/tarsnap-generations.sh -f /root/tarsnap.folders -h 1 -d 6 -w 4 -m 3

The configuration section of tarsnap-generations

What day of the week do you want to take the weekly snapshot? Default = Friday(5)

WEEKLY_DOW=5

What hour of the day to you want to take the daily snapshot? Default = 11PM (23)

DAILY_TIME=23

Do you want to use UTC time? (1 = Yes) Default = 0, use local time.

USE_UTC=0

Path to GNU date binary (e.g. /bin/date on Linux, /usr/local/bin/gdate on FreeBSD)

DATE_BIN=/usr/bin/date

Old archives are not being removed. I had to clear out 4 weeks of archives my 'hand'

yugrotavele avatar Mar 26 '13 22:03 yugrotavele

I'm having the exact same issue, archives not being removed. Had no idea until I spotted this issue, there's no shortage of archives in there to remove!

nickcobley avatar May 16 '13 10:05 nickcobley

The change that ralish posted seems to have corrected the issue. I will keep an eye on it for a little while to make sure the problem remains solved.

yugrotavele avatar Aug 28 '13 02:08 yugrotavele

I didn't actually notice this issue until your earlier comment on my pull request @yugrotavele. So yes, hopefully this is an effective fix and resolves this issue, but do let me know if you run into any issues with it. Thanks.

ralish avatar Aug 28 '13 11:08 ralish