Hi,
I’m trying to restore a site onto a different server. The /backup folder is symlink to volume storage on the mnt drive:
backup → /mnt/backups
The issue seems to come from v-extract-fs-archive:
# Checking source path
rpath=$(readlink -f "$src_file")
if [ -z "$(echo $rpath | egrep "^/tmp|^$homedir|^$BACKUP/$user\.|^$BACKUP/tmp\.")" ]; then
echo "Error: invalid source path $src_file in $rpath"
exit 2
fi
The problem seems to be that readlink
comes back with the mounted path, not the symlink folder its being run in:
readlink -f /backup/tmp.sUKdEAM9Yf/mail/clickpress.com/
/mnt/backups/tmp.sUKdEAM9Yf/mail/clickpress.com
Unfortunately having the backups in /backup isn’t really an option for me, as we’re on a limited amount of SSD (and the backups don’t need fast access. Any suggestions on what to try? Obviously I could tweak the code:
if [ -z "$(echo $rpath | egrep "^/tmp|^$homedir|^$BACKUP/$user\.|^$BACKUP/tmp\.|/mnt/backups/tmp")" ]; then
But that would break on future updates.
Mount /backup in a new partition or disk
Or use s3 storage
1 Like
Unfortunatly it doesn’t
v-restore-user clickpress clickpress.2023-04-15_05-36-55.tar
– WEB –
2023-04-17 14:49:25 clickpress.com
– MAIL –
2023-04-17 14:49:31 clickpress.com
Error: invalid source path /backup/tmp.IkuhiOn7Hw/mail/clickpress.com/accounts.tar.zst
Error: Can’t unpack clickpress.com mail account container
I did some debugging, and it was this that was failing:
/usr/local/hestia/bin/v-extract-fs-archive “clickpress” “/backup/tmp.sUKdEAM9Yf/mail/clickpress.com/accounts.tar.zst” “/home/clickpress/mail/clickpress.com/”
Error: invalid source path /backup/tmp.sUKdEAM9Yf/mail/clickpress.com/accounts.tar.zst
Even though the symlink folder I was in was showing as /backup:
pwd
/backup
The readlink shows the final path, which doesn’t get recognised as a valid path
eris
April 17, 2023, 3:47pm
5
Symlinking is not possible it need mounted as the drive…
2 Likes
Hmmm how do I do that? Its Linode “block storage”:
Attach a 10 GiB to 10,000 GiB Block Storage Volume to your Linode. Volumes can be partifioned however you like and accommodate any filesystem type you choose.
Est. reading time: 16 minutes
Basically it creates the storage (of the server), and then you mount that storage to the machine. Are you suggesting that when I mount it, instead of putting /mnt/backups , I tell it to mount directly to /backups ?
Thanks!
Andy
ok thanks - I will give that a go tomorrow
1 Like
system
Closed
May 17, 2023, 3:55pm
9
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.