Remote restore

13 views
Skip to first unread message

Stefan Cornelissen

unread,
Apr 28, 2021, 4:25:39 AM4/28/21
to bup-list
Hi all,

When doing a remote store I'm encountering the following issue:

stefan@MacBook-Pro-van-Stefan _rsyncemm % bup init -r sr@xxx:/home/sr/backups
Reinitialized existing Git repository in /Users/stefan/.bup/                                                        Initialized empty Git repository in /home/sr/backups/    

stefan@MacBook-Pro-van-Stefan _rsyncemm % bup index _source
Indexing: 29, done (208 paths/s).                                                                                                                                                        

stefan@MacBook-Pro-van-Stefan _rsyncemm % bup save -r sr@xxx:/home/sr/backups -n _source _source
Reading index: 15449, done.
Saving: 100.00% (48181/48181k, 15449/15449 files), done.                                                  Receiving index from server: 151320/151320, done.                                                                                                                                        

stefan@MacBook-Pro-van-Stefan _rsyncemm % bup ls -l -r sr@xxx:/home/sr/backups _source
drwxr-xr-x root/wheel            0 2020-01-01 09:00 2021-04-28-101710
lrwxr-xr-x ?/?                  17 1970-01-01 01:00 latest -> 2021-04-28-101710                                                                                                          

stefan@MacBook-Pro-van-Stefan _rsyncemm % bup restore -r sr@xxx:/home/sr/backups -C _restore _source/latest

stefan@MacBook-Pro-van-Stefan _rsyncemm % bup restore -r sr@xxx:/home/sr/backups -C _restore _source/2021-04-28-101633
error: cannot access b'/_source/2021-04-28-101633' in b'_source/2021-04-28-101633'      Restoring: 0, done.
warning: 1 errors encountered                                                                                                                                                            


As you can see I can restore the latest, but not a specific branch. Is a known limitation, am I missing something?


Thanks!

Johannes Berg

unread,
Nov 28, 2021, 11:57:30 AM11/28/21
to Stefan Cornelissen, bup-list
Hi Stefan,

Sorry - I left your email open to reply to later, and then evidently
forgot almost completely ..

> stefan@MacBook-Pro-van-Stefan _rsyncemm % bup ls -l -r sr@xxx:/home/sr/backups _source
> drwxr-xr-x root/wheel            0 2020-01-01 09:00 2021-04-28-101710
> lrwxr-xr-x ?/?                  17 1970-01-01 01:00 latest -> 2021-04-28-101710                                                                                                          
> stefan@MacBook-Pro-van-Stefan _rsyncemm % bup restore -r sr@xxx:/home/sr/backups -C _restore _source/latest
> stefan@MacBook-Pro-van-Stefan _rsyncemm % bup restore -r sr@xxx:/home/sr/backups -C _restore _source/2021-04-28-101633
> error: cannot access b'/_source/2021-04-28-101633' in b'_source/2021-04-28-101633'      Restoring: 0, done.
> warning: 1 errors encountered                                                                                                                                                            
>
> As you can see I can restore the latest, but not a specific branch. Is
> a known limitation, am I missing something?
>

No, that's pretty odd. I just tried in the context of a test, and I
cannot reproduce this behaviour. That was only with "-r :/path", but
client-side that should result in the same behaviour?

What version of bup were you using?

johannes

Johannes Berg

unread,
Nov 28, 2021, 3:01:35 PM11/28/21
to Stefan Cornelissen, bup-list
Interestingly, now I actually reproduced it - on another machine?! I
wonder why this is affected by the machine. Perhaps git versions?

johannes

Johannes Berg

unread,
Nov 28, 2021, 3:41:28 PM11/28/21
to Stefan Cornelissen, bup-list
On Wed, 2021-04-28 at 01:25 -0700, Stefan Cornelissen wrote:   
> stefan@MacBook-Pro-van-Stefan _rsyncemm % bup ls -l -r sr@xxx:/home/sr/backups _source
> drwxr-xr-x root/wheel            0 2020-01-01 09:00 2021-04-28-101710
> lrwxr-xr-x ?/?                  17 1970-01-01 01:00 latest -> 2021-04-28-101710                                                                                                          
> stefan@MacBook-Pro-van-Stefan _rsyncemm % bup restore -r sr@xxx:/home/sr/backups -C _restore _source/latest
> stefan@MacBook-Pro-van-Stefan _rsyncemm % bup restore -r sr@xxx:/home/sr/backups -C _restore _source/2021-04-28-101633
> error: cannot access b'/_source/2021-04-28-101633' in b'_source/2021-04-28-101633'      Restoring: 0, done.
> warning: 1 errors encountered                                                                                                                                                            

Actually, now I'm confused?

You show ls with just "2021-04-28-101710" but then try to restore "2021-
04-28-101633"?

For me "bup ls" and then "bup restore" with the output works OK - what
*doesn't* work is if I try "bup save -d ..." and then feed that back
directly to restore, that runs into some timezone issues.

johannes
Reply all
Reply to author
Forward
0 new messages