Mario Orlandi's Snippets

31/12/2011

Readynasduo Backup to USB external drive

Filed under: Uncategorized — Tags: — morlandi @ 12:47
Always use front USB port which is USB 2.0 while back ports are USB 1.1 compatible:

nas3:~# lspci -v
0000:00:17.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 62)
0000:00:17.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 62)
0000:00:17.2 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 65) (prog-if 20 [EHCI])

nas3:# fdisk -l
Disk /dev/hdc: 2000.3 GB, 2000388448256 bytes
...
Disk /dev/hde: 2000.3 GB, 2000388448256 bytes
...
Disk /dev/hde doesn't contain a valid partition table
...
Disk /dev/sda: 2000.3 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x734462e6
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1      243202  1953512032+   7  HPFS/NTFS

nas3:# du --max-depth=1 -h /c
70G	/c/family
16k	/c/lost+found
210G	/c/media
126G	/c/.timemachine
3.6G	/c/silverbullet
57G	/c/brainstorm-extr
48G	/c/backup
708M	/c/.bittorrent
25G	/c/brainstorm
11M	/c/home
536G	/c

nas3:# mount /dev/sda1 /mnt/usbdrive/ 

Per es., backup del folder "brainstorm":
nas3:# rsync --progress --delete -avh /c/brainstorm/ /mnt/usbdrive/2011-12-31/c/brainstorm

oppure:

nas3:# rsync --progress --delete -avh --exclude-from '/c/exclude.txt' /c/ /mnt/usbdrive/2011-12-31/c

dove per es.

nas3:# cat exclude.txt
media
.timemachine
.bittorrent

Poiche' abbiamo attivato "fast USB write", alla fine:
nas3:# umount /mnt/usbdrive

note

nas3:~# export TERM=xterm
nas3:~# top

Advertisement

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Theme: Silver is the New Black. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.