Rsync over SSH for restoring backup purpose

After sometime, I think there are time when we had to dig to our backup repository and restore things.

And this is when the combination of rsync and ssh become handy..

let’s say want to rsync from remote host to local..

rsync -avz -e "ssh -i fc.keys" root@192.168.133.1:/path/to/backup /path/to/local

Example Usages:

[namran@nb-namran ~]$ rsync -avz -e ssh root@fc:/media/NAMRANNET/namran/.thunderbird .
receiving incremental file list
.thunderbird/
.thunderbird/appreg
.thunderbird/profiles.ini
.thunderbird/wudj17zc.default/
.thunderbird/wudj17zc.default/.parentlock
.thunderbird/wudj17zc.default/XPC.mfasl
.thunderbird/wudj17zc.default/XUL.mfasl
.thunderbird/wudj17zc.default/abook.mab
.thunderbird/wudj17zc.default/blocklist.xml
.thunderbird/wudj17zc.default/cert8.db
.thunderbird/wudj17zc.default/compatibility.ini
.thunderbird/wudj17zc.default/compreg.dat
.thunderbird/wudj17zc.default/cookies.txt
.thunderbird/wudj17zc.default/downloads.rdf
.thunderbird/wudj17zc.default/extensions.cache
.thunderbird/wudj17zc.default/extensions.ini
.thunderbird/wudj17zc.default/extensions.rdf
.thunderbird/wudj17zc.default/history.mab
.thunderbird/wudj17zc.default/key3.db
.thunderbird/wudj17zc.default/localstore.rdf
.thunderbird/wudj17zc.default/mailViews.dat

rsync-over-ssh
so.. now my thunderbird restored from that backup .. i think..

hehehe..

p/s : sort of preparation before going into dark-mode again..

Related Post

4 Responses

  1. Pingback: Jamshed Maynard
  2. Pingback: Jamshed Maynard
  3. autodesk seeking alpha says:

    Hello! I simply wish to give a huge thumbs up for the great
    data you will have right here on this post. I will be coming again to your weblog for more soon.

    Reply
  4. autodesk seeking alpha says:

    Hello! I simply wish to give a huge thumbs up for the great
    data you will have right here on this post. I will be coming again to your weblog for more soon.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *