Aminserve: Your reliable partner for RDP VPS Dedicated Server VPN since 2010

No restriction, Crypto accepted from anyone, anywhere!

Make a full backup of your Linux box

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

More Posts

Windows Dedicated Server In Germany Unleashing Unparalleled Performance

Windows Dedicated Server in Germany

In today’s fast-paced digital landscape, businesses need reliable and high-performing servers to meet their ever-growing demands. A Windows dedicated server in Germany can provide the

Can’t decide which plan is right for you? We will guide you step by step.

logo

Quality hosting since 2010