7GB VPS, 5GBtaken...how to backup?

sokolkapl

Verified User
Joined
Mar 12, 2010
Messages
40
Hi,

My server has 7GB space on it and 5GB is already taken. When I try to use Backup option and FTP it somewhere else, I receive gzip: stdout: No space left on device. My VPS does not provide VPS backup.

How would you recommend me creating a backup of all of my accounts/server?

Thanks
 
You will need to increase your VPS account - the backup needs to "stage" the file before sending via FTP - which means it will store the backup file on the server.

My recommendation is that you get at least 20GB if you've already used 5GB - it gives you headroom for growth. Most VPS offer 20GB these days as a fairly inexpensive plan. I can think of one that will give you 20GB for $5.95 per month (no, it's not me for those wondering).
 
Increasing space size is not an option, unfortunately. Any other ideas?



You will need to increase your VPS account - the backup needs to "stage" the file before sending via FTP - which means it will store the backup file on the server.

My recommendation is that you get at least 20GB if you've already used 5GB - it gives you headroom for growth. Most VPS offer 20GB these days as a fairly inexpensive plan. I can think of one that will give you 20GB for $5.95 per month (no, it's not me for those wondering).
 
Only thing you can do is write a script that ftps files directly to another server without creating a zip of them.
 
I use a scrript I wrote that does an rdiff-backup to my home computer. I have it backing up all the directories required for doing a restore. Plus rdiff-backup allows me to keep versions of changed and deleted files. I normally keep 14 days worth. I have it configured to backup to my Mac at home in the /opt/Backup directory. It taks a long time the first time you do a backup, but after that, only deltas are sent to the backup, so it is much quicker.

You would still have to know your way around DirectAdmin and how everything is layed out, to restore a full user, but at least with this method I have the needed files, if that time arises. I also do periodic backups of user accounts, since it does make that job a lot easier, but this helps for files that are not included within DirectAdmin backups.

It looks like this(USER@HOST shoud match your configuration):
#!/bin/sh

export PATH=/usr/local/bin:/usr/bin:/bin
EXCLUDES="/aquota.group /aquota.user /backup /bin /dev /initrd /lost+found /media /mnt /proc /sbin /selinux /srv /sys /tmp /usr /var/log /home/admin/admin_backups /home/admin/user_backups /root"
INCLUDES="/usr/share/ssl /usr/lib/apache /usr/local"

for incs in $INCLUDES
do
RDIFF_OPTS="$RDIFF_OPTS --include $incs"
done
for exclds in $EXCLUDES
do
RDIFF_OPTS="$RDIFF_OPTS --exclude $exclds"
done

RDIFF_OPTS="$RDIFF_OPTS --include-symbolic-links --exclude-special-files --exclude-other-filesystems --terminal-verbosity 4 $1"

echo "/usr/bin/rdiff-backup $RDIFF_OPTS / USER@HOST::/opt/Backups/"
/usr/bin/rdiff-backup $RDIFF_OPTS / USER@HOST::/opt/Backups/
echo "/usr/bin/rdiff-backup --remove-older-than 14D USER@HOST::/opt/Backups/"
/usr/bin/rdiff-backup --force --remove-older-than 14D USER@HOST::/opt/Backups/
 
Here's what I'd do:

I'd backup the contents of all public_html and private_html directories by direct FTP. Then I'd delete them (dangerous; make sure your ftp backup worked). Then use DirectAdmin to backup what's left. It'll fit now.

Then get a new VPS, twice the size of your anticipated need, and reverse the procedure to restore.

Jeff
 
Back
Top