Saltycrane logo

Sofeng's Blog

Notes on Python, Django, and web development on Ubuntu Linux

     Posts tagged "rsync"

Creating remote server nicknames with .ssh/config


Using the ~/.ssh/config file is an easy way to give your remote machines nicknames and reduce the number of keystrokes needed to login with ssh, rsync, hg push/pull/clone, access files via Emacs Tramp (Transparent Remote (file) Access, Multiple Protocol), or use any other SSH-based tool.

Here is part of my ~/.ssh/config file. It defines the nicknames turk, tyran, tuna, and tally for some EC2 servers I've been working with.

Host turk
  User root
  HostName ec2-67-202-21-122.compute-1.amazonaws.com

Host tuna
  User root
  HostName ec2-75-101-178-62.compute-1.amazonaws.com

Host tyran
  User root
  HostName ec2-67-202-43-207.compute-1.amazonaws ...
Read more...

Backup on Linux: rsnapshot vs. rdiff-backup (vs. Time Machine)


Apple's release of Leopard and the included backup utility, Time Machine, has generated a lot of talk about backups recently. I will admit Time Machine is pretty cool and believe that it is a bit more than a glorified GUI on top of an existing *nix tool as some have claimed. However, the core functionality is very similar to the command-line tool, rsnapshot, which is itself based on a rsync script by Mike Rubel. Time Machine added a couple of features and a GUI to make it easy to use. Since I prefer the command line over GUIs most ...

Read more...

backing up with rsync


Here is a python script using rsync to backup my Users directory in Vista to an external hard drive.
import os

cmd = "rsync -avz --exclude '/AppData/'" + \
      "/cygdrive/c/Users/sofeng" + \
      "/cygdrive/f/backup/Users"
os.system(cmd)
Why not to use the backup program that comes with your external hard drive:
Do not, whatever you do, feed your valuable data to a program that is going to save it in a file format that can only be read by that program, or by that kind of computer. Because when the program can’t or the computer can’t, you’re ...
Read more...
Created with Django | Hosted by Webfaction