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

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,213
363
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
95
7
158
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