Easy full server backup using tar in bash.
If you decide to use “tar” as your backup solution, you should probably take the time to get to know the various command-line options that are available; type “man tar” for a comprehensive list.
The following code will create a full backup of your entire server. Excluding, /media, /proc and /var/spool/squid you might want to add or delete some excludes. Like /mnt, most servers mount devices in that folder. You need to exclude these as well. Also, You need to make sure you are creating your backup in a excluded folder/area. I make my backups in a mounted 30GB HD Device located in /media which is excluded.
If you only want to make a Backup from your /home and /root directory (which are probably the most important) just use this command:
Hope it works for you like it did for me, if you have any questions regarding to this post, please leave a comment so others can read it too.
