• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 760
  • Last Modified:

Back up dedicated linux server using putty

Can anyone explain the procedure to backup my linux dedicated server using putty remotely from my pc?

mkdir /backups; chkconfig portmap on; service portmap start; echo "backup server ip address:/backups/my server ip address /backups nfs rw,hard,intr,noexec,rsize=8192,wsize=8192,nfsvers=3,noatime,_netdev 0 0" >> /etc/fstab; mount -a

I have used the above code to create the backup to a folder on a separate machine
but dont know how to do occasional backups.

any help would be appreciated

2 Solutions
Use this page for a short tutorial on using tar to back up your server:


Then you should have the complete backup in one file you can download and save.
You can use a number of utilities to backup your server.

PuTTY is just a console you are using to get to the remote server so don't get confused with it.

Once you log on using PuTTY,  you are in the remote machine.  Consider these questions.
1.  What do you want to backup --folders files
2.  Which utilities you want to use --  nfs, rsync, http, ssh, ftp, etc.
3.  Do you want to archive your files, etc using tar?

Appears you are trying to use nfs share on which you can write.  If the target machine's (where you would put your files for backup) folder is mounted with write option, you can simply copy you files to it with a cp command.  You may want to make an archive of all the files you want to backup as the expert above has suggested.  It is totally up to you.  If you want a complete machine backup, it is highly recommended.  In that case you have to exclude certain folders like /proc , /var/run, etc.  The above guide can help you with that.

Hope it helps
bud144Author Commented:

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now