Re: [Dar-support] dar_manager and The Removed File
For full, incremental, compressed and encrypted backups or archives
Brought to you by:
edrusb
From: Denis C. <dar...@fr...> - 2011-06-17 18:53:13
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Philippe Naudin wrote: > Le ven 17 jun 2011 16:27:56 CEST, Joost Roeleveld a écrit: > >> On Friday 17 June 2011 11:21:37 Philippe Naudin wrote: >>> Hello, >>> >>> Is there a way to ask dar_manager to restore all the files on the >>> command line, including the files which are marked as removed in >>> recent backups, without using "--when" ? >>> ... >> Try the following option for "dar" (from the man-page): >> -k, --no-deleted >> >> Do not delete files that have been deleted since the backup of reference (file >> overwriting can still occur). By default, files that have been destroyed >> since the backup of reference are deleted during restoration, but a warning >> is issued before proceeding, except if -w is used. If -n is used, no file will >> be deleted (nor overwritten), thus -k is useless when using -n. > > Thanks for your reply, > > I have tried "-kignored", unfortunately without success. > > As I understand it, it is dar_manager who decide to drop the removed > files, and thus options passed to dar don't have a chance to solve the > problem. > > (In my first post, I should have mentioned that I am using dar-2.4.0) > Hello, That's the point. Since release 2.4.0 dar_manager records when a file exists and when he has been removed (in previous release, dar_manager ignored deleted files and could not restore a filesystem or a part of it in the state it had at a given date, however he could restore any file in its latest version even if it was removed for a while before the latest backup). By default restoring file from dar_manager means asking the latest status of requested files or directories, but you can also specify a date: in that case dar_manager will fetch each files from archives in the status they had at that given date (see dar_manager's -w option in man page for details). For a particular file that has been removed for a while, you can use dar_manager's -f option to locate at what time it existed and either give that date (or a date just before) to dar_manager or directly use dar on the corresponding differential backup. There is currently no option in dar_manager to get the previous behavior, this is a slide effect of a new/better feature ... :-/ Regards, Denis. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFN+6KOpC5CI8gYGlIRAlfoAJ9+PRuc3PFn0oRtU3c1S4O0g9FEWwCgsFW0 lLL4OebqlaqmJzFYh8GLgko= =ed6s -----END PGP SIGNATURE----- |