holland-backup / holland

Holland Backup Manager
http://hollandbackup.org
Other
152 stars 49 forks source link

Allow option for relative path symbolic links #341

Closed patakijv closed 3 years ago

patakijv commented 3 years ago

The ability to create symlinks newest/oldest is nice however there are cases where the links being absolute doesn't work.

  1. when the link is created inside a docker container on a volume mounted path, such as a host bind
  2. when the entire backup directory is copied to a different location, such as for offsite backup destinations

Perhaps an option for symlinks to be created as relative path could be added or could be one of the possible options for create-symlinks, this would allow it to work relative to the parent directory no matter where it was.

soulen3 commented 3 years ago

I think I should have time to look at this next week. Shouldn't be a big deal to add an option for it

soulen3 commented 3 years ago

Can you please confirm this is what you're after?

$ ls -l /var/spool/holland/default/
total 0
drwxrwx---. 3 root root 58 Nov  9 17:24 20211109_172430
drwxrwx---. 3 root root 58 Nov  9 17:24 20211109_172436
drwxrwx---. 3 root root 58 Nov  9 17:24 20211109_172445
lrwxrwxrwx. 1 root root 15 Nov  9 17:24 newest -> 20211109_172445
lrwxrwxrwx. 1 root root 15 Nov  9 17:24 oldest -> 20211109_172430
patakijv commented 3 years ago

Yep

Sent from my iPhone

On Nov 9, 2021, at 3:26 PM, soulen3 @.***> wrote:



Can you please confirm this is what you're after?

$ ls -l /var/spool/holland/default/ total 0 drwxrwx---. 3 root root 58 Nov 9 17:24 20211109_172430 drwxrwx---. 3 root root 58 Nov 9 17:24 20211109_172436 drwxrwx---. 3 root root 58 Nov 9 17:24 20211109_172445 lrwxrwxrwx. 1 root root 15 Nov 9 17:24 newest -> 20211109_172445 lrwxrwxrwx. 1 root root 15 Nov 9 17:24 oldest -> 20211109_172430

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/holland-backup/holland/issues/341#issuecomment-964636284, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAA3B36DTLYH3DUNQYERJTLULGU3HANCNFSM5HJGVRCQ.