All posts tagged with 'Shell'

Remote hdd cloning

16-Aug-07

Some time ago i managed to clone the drive of my server over ssh. Although transmission was compressed with bzip2 it took awful long and i didn’t have a clue how long i would finally take. Today i stumpled upon this post. The author uses a tool called pv: pv – monitor the progress of […]

Read the complete article »

Copy directories and preserve permissions

18-Mar-07

The following command will create a recursive copy of the current working directory preserving all file permissions and owners: mkdir /var/backup/michael cd /home/michael tar cf – . | (cd /var/backup/michael && tar xBfp -)mkdir /var/backup/michael cd /home/michael tar cf – . | (cd /var/backup/michael && tar xBfp -) Comes in handy while moving whole directory […]

Read the complete article »