In Progress [CPANEL-24094] Relative paths required for backup destinations

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello @Morphime,

I've merged your posts into this thread.

I don't have an update to offer on the status of this case at this time, but I'll update this thread as soon as more information is available.

Thank you.
 

markleman

Registered
Jul 14, 2016
1
0
1
UK
cPanel Access Level
Root Administrator
I found this thread In Progress - [CPANEL-21358] Unable to validate rsync backup destination

And tried a workaround suggested :

Go to:
/var/cpanel/backups
edit the .backup_destination file and add the / to make it absolute path! Seems to work for me but cpanel really needs to fix this
Thanks for this suggestion. I was hitting my head against a wall trying to solve this restriction and the other suggestion of using symbolic links did not work (I created them on my ftp server, but when I ftp'ed to it from my cpanel server they did not appear).

In the end I hand edited the .backup_destination and it works again. Just have to remember not to update the backup destinations via the web interface now :-(

Regards,
Mark Leman
 

LBJ

Well-Known Member
Nov 1, 2003
117
24
168
cPanel Access Level
DataCenter Provider
In the meantime, a workaround is to setup a symbolic link pointing the /root/$backup path on the destination server to the path of your preference. For example, to do this you'd run a command line this on the remote destination server:

Code:
ln -s /home/backup /root/backup
Let me know if the workaround helps.
The symlink approach breaks the hard link creation process with remote incremental destinations.

Modifying the /var/cpanel/backups/*.backup_destination file directly to provide a non-symlink path seems to be the only truly reliable workaround.

Hopefully cPanel will return the logic to allow at least a path such as '/../backup_external' to the additional destinations screen to cater for sending backups via rsync to external drives on external servers.

Best regards,

LBJ
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
14,265
2,221
363
cPanel Access Level
Root Administrator
This has actually been a more complicated issue than it seems. On the surface, it seems like a trivial change to just adjust the path in the backup system. However, once we make the adjustment, we'll likely see as many complaints about tools requiring full paths instead of relative, as both get used in various systems.

I have reached out to our backup team and they plan to discuss this more in-depth soon to see if we want to make a change on our side at all, or if we want to make a larger change to that system in general.

So the short answer is "no," there isn't an update at this time, but we haven't forgotten about this issue.