Solved

Options To Use During Backup

Posted on 2003-11-19
3
237 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

739 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