This tutorial helps you to make full backup of your linux vps/server.
First login to your box by root ssh access and then download the backup.sh by this command:
Wget http://dl.aminserve.com/backup.sh
now, run this command:
bash backup.sh
You have tar.gz file that includes all of your files in the VPS or Server and you can download it via ssh or upload it via FTP commands.
Here is the content of this file, you can make a sh file yourself:
#!/bin/sh
####################################
#
# Backup to NFS mount script.
#
##################################### What to backup.
backup_files=”/”# Where to backup to.
dest=”/home/backup”# Create archive filename.
day=$(date +%A)
hostname=$(hostname -s)
archive_file=”$hostname-$day.tgz”# Print start status message.
echo “Backing up $backup_files to $dest/$archive_file”
date
echo# Backup the files using tar.
tar czf $dest/$archive_file $backup_files# Print end status message.
echo
echo “Backup finished”
date# Long listing of files in $dest to check file sizes.
ls -lh $dest