How to Backup and Restore Ubuntu Server Using Tar in Terminal

  • Look here -> Admin Tools.



    Two easy steps simplified


    To Create the Backup Archive:


    sudo tar -cvpzf yourbackupfilename.tar.gz --exclude=/path/to/backup/yourbackupfile*name.tar.gz --one-file-system /


    In the last part of the command a single forward slash will backup the entire root directory, or you can specify a certain directory to backup.


    Restoring your backup:


    sudo tar -xvpzf /path/to/yourbackupfilename.tar.gz -C /directory/to/restore/to --numeric-owner


    If restoring a complete root directory backup the last section of this command would simply be a forward slash /


    you can also ftp the file to your desktop the back up file will be in your home folder on your server:09:

  • master G

    Added the Label Article

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!