backintime icon indicating copy to clipboard operation
backintime copied to clipboard

Feature request: Dry Run

Open Germar opened this issue 10 years ago • 3 comments

It would be great to have a dry run option. It would help to see what files would be realy included. I'd prevent adding huge files by surprise like virtual machines images, iso and movies.


Imported from Launchpad using lp2gh.

  • date created: 2014-03-13T01:37:44Z
  • owner: colin-brosseau
  • the launchpad url was https://bugs.launchpad.net/bugs/1291710

Germar avatar Oct 11 '15 16:10 Germar

I'd like to see that too. It happens quite often that some big files end up unintentionally in the backup. Is there some other way (e.g. rsync commandline) to check in advance which new files would be backupped?

bugspencor avatar Mar 03 '21 22:03 bugspencor

That would indeed be a very useful feature.

colinl avatar Mar 04 '21 21:03 colinl

Hallo,

yes, it would be nice to have such a feature implemented into Back In Time, but just to let people like us know, people who searched for such an option, this feature is not necessarily needed.

You can perform a dry run by simply adding the option --dry-run to "Settings->Expert Options->Paste additional options to rsync".

This will perform the dry run we were looking for and write it into a log file, if you have chosen a log option. Back in Time / rsync will not copy any file, but maybe it will still create everything that it always creates, like the symlink and maybe the other data or files. Maybe the "old" symlink gets deleted because of that. So if you perform a dry run like this, you maybe should make a copy of the additional files that Back In Time creates beside the actual backup files. I say maybe, because I do not know for sure how Back in Time will act in the same Profile. That's because I tested the dry run with an separate profile to a separate folder, but with a copy of the additional files to restore them if needed, one should be fine to try a dry run to the same profile, I guess.

Thanks to all members of the bit-team for this nice software. I like!

Kind regards Chris

ChrisK5 avatar Oct 09 '21 18:10 ChrisK5

Information from #249: a Dry Run would also help identify permission errors before starting a lengthy backup/transfer operation.

emtiu avatar Sep 24 '22 21:09 emtiu

Note: I got the hint that LuckyBackup (also using rsync) do have such a "simulation" feature.

buhtz avatar Dec 11 '23 07:12 buhtz

I think with rsync --dry-run plus a new BiT command line argument --dry-run plus a "Take a snapshot (dry run)" button this could be implemented quite easily.

I would use a signal file in the created snapshot folder (eg. is_dry_run_result_only.txt) to

  1. capture and persist the dry run result log "as usual" without changing the whole back-end logic
  2. allow the GUI to show a "dry run indicator" in the snapshots list
  3. prevent restoring from a dry-run result
  4. let the "auto-remove" feature ignore the dry run "snapshot" folder

Any more obstacles that we could face implementing this?

aryoda avatar Dec 11 '23 08:12 aryoda

Sounds like a f***ing awesome solution!

buhtz avatar Dec 11 '23 10:12 buhtz