Solved

Options To Use During Backup

Posted on 2003-11-19
3
234 Views
Last Modified: 2013-12-15
I am running Debian 2.4.18.  When making a backup of /boot to /mnt/Linux.Backup I used cp -vR /boot /mnt/Linux.Backup.  An error message occurred when it got to /boot/boot.b.  It said: cp: Cannot create symbolic link 'mnt/Linux.Backup/boot/boot.b': Operation not permitted

Can I/Should I use cp -vRH to follow command-line symbolic links?
0
Comment
Question by:Gnustome
3 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 9782221
"cp" is the wrong tool to use to create a backup as it can't deal with some of the special file types essential to the operation of a Linux system. You need to be using cpio or dump.
0
 

Author Comment

by:Gnustome
ID: 9783137
I want to keep both backup and restore as simple as possible, while still being reliable.  Do you recommend cpio or dump?  And what options should I specify?
0
 
LVL 38

Accepted Solution

by:
yuzh earned 200 total points
ID: 9784029
Agreed with jlevie, you need to use cpio, or dump/restore to do the job.

Here's the examples:

Asssume that /mnt/Linux.Backup  is a mounted filesystem

1) use cpio:

cd /

find boot -print | cpio -oacv | (cd /mnt/Linux.Backup ; cpio -icdmuv )

2) use dump/restore

cd /

dump 0uf - boot | (cd /mnt/Linux.Backup ; restore rf -)

The systax for restore the file from /mnt/Linux.Backup  is the same, just
need to change the dirnames to the one you wanted.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now