I've been required to create a copy of a LV its associated FS and data content.
COPY LV PROCEDURE:
# cplv -v datavg -y lvnew lvold
I've created the relevant FS on the new LV (lvnew) and mounted it - such that there are now 2 mounted FS's.
What would be the best backup tool to copy the contents of the oldfs to the newfs, such that it:
1)perserves original file permissions
2)Preserves any symbolic links
3)carries out a recursive directory backup
Is the best tool tar???
Backup:
# cd oldfs
# tar -cvpf /tmp/bkup.tar .
Restore:
# cd /newfs
# cp /tmp/bkup.tar .
# tar -xvf bkup.tar
Would the above fulfill my needs or is there a better way?
COPY LV PROCEDURE:
# cplv -v datavg -y lvnew lvold
I've created the relevant FS on the new LV (lvnew) and mounted it - such that there are now 2 mounted FS's.
What would be the best backup tool to copy the contents of the oldfs to the newfs, such that it:
1)perserves original file permissions
2)Preserves any symbolic links
3)carries out a recursive directory backup
Is the best tool tar???
Backup:
# cd oldfs
# tar -cvpf /tmp/bkup.tar .
Restore:
# cd /newfs
# cp /tmp/bkup.tar .
# tar -xvf bkup.tar
Would the above fulfill my needs or is there a better way?