-
Rustic version: 0.5.0 Same issue also applies to v0.4.4. OK, all my backups are in an external drive. Today, I restored one of my small sized backups to a ~/test directory and it was fast enough. Then I tried restoring the same backup to ~, it took longer. Here is the difference for a small sized backup.
And here is another backup that is 874MB.
Removing the
Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
If you restore to an already existing dir, rustic scans this dir. It then shows the result under the statistics as If you specify the This explains your observation: Restoring to an empty dir is faster than restoring to a dir containing lots of entries... |
Beta Was this translation helpful? Give feedback.
-
FYI, all of these options can also (but of course must not) be specified in the config file:
|
Beta Was this translation helpful? Give feedback.
-
I didn't realize that 'additional' section. But I'm still confused.
First, a question: Does this command mean 'restore the latest snapshot that contains the path /home/username/backups to /home/username? If true: If I want to restore the path '/home/username/backups' to /home/username, after the restore, what I have is: Also your snapshots-filter example makes me completely confused. Is this a source-to-destination like pairing or just two paths that I want to restore. I think, it's not a source-to-destination like pairing, because it didn't work. If they are two paths that I want to restore, then you got me wrong because in my first examples, /home/username/test is not what I want to restore. It's the destination. Maybe you just come up with Sorry for not making it short. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Exactly! Sorry for the confusion about the snapshot filter. You filtered just one path - I corrected the example. If you want to restore a sub-dir within your snapshot to a specific dir in your filesystem (maybe this is what you mean by "source-to-destination like pairing"), you can use the
I'll turn this issue into a discussion as it seems like it fits better there. |
Beta Was this translation helpful? Give feedback.
-
One last question then: Is it possible to restore every path under each |
Beta Was this translation helpful? Give feedback.
If you restore to an already existing dir, rustic scans this dir. It then shows the result under the statistics as
additional
.If you specify the
--delete
option, also all of these additional files/dirs will be removed.This explains your observation: Restoring to an empty dir is faster than restoring to a dir containing lots of entries...