gilbertchen / duplicacy

A new generation cloud backup tool
https://duplicacy.com
Other
5.16k stars 336 forks source link

Prune option question & backup integrity check #450

Open UsefulVid opened 6 years ago

UsefulVid commented 6 years ago

Prune I want to delete everything older then 180 days and keep everything newer 180 days

Will this do the job? duplicacy prune -keep 0:180

Integrity

Once a week I like to run a job which checks the integrity of my backup on an sftp server. if anything goes wrong with my backup will the check -a command alert me?

TheBestPessimist commented 6 years ago

-keep 0:180 -keep 7:30 -keep 1:7

The order has to be from the eldest to the youngest! (hence 180 comes before 30 comes before 7).

UsefulVid commented 6 years ago

I want to keep all revisions before 180 days duplicacy runs 3 times a day. this means in a week I have 21 revisions. 1:7 will delete 20 of them right?

TheBestPessimist commented 6 years ago

1:7 will delete 20 of them right?

yep.

If you want all (LE. < 180 days) revisions then indeed, you need only -keep 0:180

UsefulVid commented 6 years ago

great thanks!

NiJoao commented 6 years ago

I'm also interested in the answer of the second question:

Integrity Once a week I like to run a job which checks the integrity of my backup on an sftp server. if anything goes wrong with my backup will the check -a command alert me?

Is check -a/-stats enough for normal backups, non-SLA-99.9999%-certificates ? Or should we sporadically restore a random file to confirm? Has anyone ever got to a state where check would succeed but a restore wouldn't?