Skip to content
View in the app

A better way to browse. Learn more.

Gear Crushers

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Unix how to backup and restore using another server

Featured Replies

This is are my notes and hopefully other people's comments on how to backup a unix based operating system and do a restore using another server to store the files.



ideally... the tool would login remotely into a server and begin backing up the server to it. You could then use a tool to recover from that remote server to another server.



So in this scenario we have three servers


server1 - has all the files and is working fine to include hosting a mySQL database and websites


server2 - new server that you would like to migrate over to (also could be a replacement server for failed server1)


server3 - backup server (just alot of space) that requires AD authentication



Goal


  • backup all files from server1 to server3
  • restore server1 on server2 and see if it comes up using that system (so disaster recovery).. getting an idea of how much time it would take to get system back online and build the process
  • also restore certain files from server3 to server2

  • 1 month later...
  • Author

Something I am starting to look into is a very highly recommended system called BackupPC





I was looking at Bacula but it is seriously complicated with many hooks and its just so confusing and complicated. I want something much easier to use and it looks like BackupPC might be the answer. Not a big fan of PC used in the name but I can overlook it if it works. From what I have read it backs up pretty much any operating system. I will post more. Look under the CentOS forum for instructions on how to install.



  • Author

USING RSYNC TO BACKUP AND RESTORE





SYNC From local to remote computer



rsync -avz --delete /source/folder user@remote.server:/destination/folder










SYNC From remote to local computer



rsync -avz --delete user@remote.server:/source/folder /destination/folder










The --delete option will delete the files in the destination folder, that have been deleted in the source folder, that way the two folders will always be in sync.



NOTE: If you need to limit bandwidth used from in a rsync backup connection use --bwlimit=KBPS and tell rsync how much bandwidth in Kbytes pers second can be used.



BACKUP /var/www from 10.6.56.245 to 10.6.56.100 (ftp server)



RESTORE /var/www from 10.6.56.100 to 10.6.56.244



-------------------------------------------------------------------------







COPY From local to remote



rsync --progress --partial -avz /folder/to/copy/ user@remote.server:/remote/folder






NOTE: This will copy all files in /folder/to/copy/ to /remote/folder in the remote server, the folder copy itself will not be created in the remote computer, and only its contents will be copied, if you want the folder itself to also be created and then its contents copied inside the newly created copy folder, use this command.



rsync --progress --partial -avz /folder/to/copy user@remote.server:/remote/folder



NOTE: the trailing slash after copy that makes the difference. The rest of options are:



• progress: will show the percentage of the file copied



• partial: tells rsync to keep the partial file which should make a subsequent transfer of the rest of the file much faster.



• a: Archive, It is a quick way of saying you want recursion and want to preserve almost everything.



• v: Verbose



• z: Compress the files so less bandwidth is needed, and the files are copied faster.



Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.