Replies: 2 comments 1 reply
-
I arranged a real TLS cert so I was no longer blocked on As I thought, |
Beta Was this translation helpful? Give feedback.
-
@grifferz
|
Beta Was this translation helpful? Give feedback.
-
I arranged a real TLS cert so I was no longer blocked on As I thought, |
Beta Was this translation helpful? Give feedback.
-
@grifferz
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have a quite large rsnapshot setup which I'm looking at decomissioning and have been evaluating restic and rustic as the replacement.
While it would be feasible to just leave the rsnapshot directory tree where it is and refer to it as the place to go for data from before the cutover, it would be nice to import that data in to the new repo for convenience. My tests with restic have shown that the compression and better deduplication provide a decent space saving if nothing else.
The question is how best to do it.
Just in case anyone is unfamiliar with rsnapshot, it has left me with a directory structure like this:
That is, a top level directory called
daily.0
with the most recent daily snapshot, with one directory tree per host below that.I took a naive approach with restic of changing to the root of this tree (
daily.0
) and kicking off a scripted set ofbackup
commands like this:After that completed I used
restic rewrite --new-time ...
to set the time of that snapshot to the mtime on the parent directory, so it appears like this data got into restic at the time that rsnapshot actually ran.My thought with this was that later on for the regular snapshots on the real host
foo.example.com
I'd just be doing:However, what happened is that restic made all the paths absolute so for example, one of the files backed up is
/srv/rsnapshot/daily.0/foo.example.com/home/andy/.bash_profile
and also there is a later snapshot from the real client with a file/home/andy/.bash_profile
. restic doesn't know that the first snapshot is a parent of the second or that these two files are the same file.Now, after reading some rustic documentation I understand that rustic has an
--as-path
option so possibly what I could have done is:and this would have stored these paths as relative from the start?
Then later, on the real host:
Is that correct?
I do see however that the documentation for
--as-path
saysso maybe that wouldn't work after all?
On the other hand, my reading of #294 suggests that rustic does in fact handle relative paths differently so is
--as-path
the wrong thing to be looking at and if I had just used rustic with relative paths to begin with this would in fact just work for me?I apologise that my testing hasn't got as far as that yet — I need support for
--cacert
since I userest-server
so that has complicated my efforts to quickly try this out from my old rsnapshot host.Any other advice or thoughts gladly received.
Thanks,
Andy
Beta Was this translation helpful? Give feedback.
All reactions