1 |
Hi, |
2 |
I would like to back up a mounted RAID0 to a mounted RAID1. I've |
3 |
not used rsync before but it seems very well suited for this task. The |
4 |
contents of the RAID0 are currently very simple - just some iso images |
5 |
and two VMWare Windows XP installs. I don't see any links in there. |
6 |
However my iso directory I did create a few links: |
7 |
|
8 |
mark@c2stable ~ $ ls -al /virdata/isoImages/ |
9 |
total 1184672 |
10 |
drwxrwxrwx 2 mark users 4096 Apr 15 14:09 . |
11 |
drwxrwxrwx 4 mark users 4096 Apr 14 14:57 .. |
12 |
-rwxrwxrwx 1 mark users 667621376 Apr 15 08:36 Win98.iso |
13 |
-rwxrwxrwx 1 mark users 544276480 Apr 14 15:16 WinXPHome.iso |
14 |
lrwxrwxrwx 1 mark users 9 Apr 15 14:09 XP2_CD1 -> Win98.iso |
15 |
lrwxrwxrwx 1 mark users 13 Apr 15 14:08 XP2_CD2 -> WinXPHome.iso |
16 |
mark@c2stable ~ $ |
17 |
|
18 |
If those are going to cause problems I can likely get rid of them. |
19 |
|
20 |
Would the following command be appropriate to backup /virdata on |
21 |
RAID0 to /backups on RAID1? |
22 |
|
23 |
rsync -avx /virdata/. /backups/. |
24 |
|
25 |
It appears that maybe the -a option wouldn't copy the links? |
26 |
|
27 |
Longer term I want to figure out how to rotate backups but for now |
28 |
I just want to get a copy safely to RAID1 before the end of the day. |
29 |
|
30 |
Also, how does rsync handle the backup if the RAID0 directory is |
31 |
active and changing? Will it keep working until there are no |
32 |
differences? Or does it read once and copy? |
33 |
|
34 |
Thanks, |
35 |
Mark |