Full Server Backup and Move Using rsync

Need to make a quick backup of your server? Maybe even move all your important files? Use the following commands to backup or replicate your entire Linux server without any pain. If you are sending the backup to a remote server, use the second command. Both commands will backup non-system files (not software, only settings and user files) which is perfect if you are migrating an entire server or just need a very usable backup that keeps your directory structure completely intact all the way to the root folder. We do recommend that this command only be ran by a qualified Linux technician, there is a very real possibility that if you do not know where you are putting the files, you can overwrite files that you actually don't want overridden so be sure to use these commands with care. Also recommended if you are replicating that you replicate to a operating system that is the same as the original machine to prevent any oddities.

When in doubt, contact Mean Servers for a quote, we can do it for you!


 
Local Backup: rsync -aAXv --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} / /path/to/backup/folder

*Be sure to replace the /path/to/backup/folder in the first one with the location of where you wish to place the backup of.

Remote Backup: rsync -aAXv --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} / root@<remote ip>:/path/to/remote/backup/folder

*Be sure to replace the <remove ip> with the IP address of the server you are sending the backup to and /path/to/remote/backup/folder with the full path to the remote backup folder location
  • 58 Utilisateurs l'ont trouvée utile
Cette réponse était-elle pertinente?

Articles connexes

Setup Your Own Private VPN with PPTP

PPTP VPN IntroductionTired of being geo blocked and not being able to watch your favorite TV...

Protect DirectAdmin from Brute Force Attacks

A common method of gaining access over a server is to use a technique called a brute force...

Changing Your Server's Time Zone

Changing the time zone that your server is set to is relatively simple and straight forward. In...

Synchronizing Your Server's Clock

Synchronizing your server's clock is not very difficult as there is a program that can be ran by...

Installing CSF (ConfigServer Security & Firewall)

The CSF, ConfigServer Security & Firewall, is a powerful firewall that is made for Linux...