Login | Register
My pages Projects Community openCollabNet

Discussions > users > RE: Is it safe to ignore /dev?

Discussion topic

2020-03-13: This site is going to be decommissioned and shut down very soon. Please copy and archive any data you wish to keep ASAP

Back to topic list

RE: Is it safe to ignore /dev?

Author portabill
Full name Bill
Date 2007-11-19 09:53:36 PST
Message Thanks, Phil. I just saw a lot of stuff.

I did take a look at someone's backup process from ubuntuforms.org and they
did exclude /sys and /mnt, does that sound right?


-----Original Message-----
From: Philipp Marek [mailto:philipp at marek dot priv dot at]
Sent: Monday, November 19, 2007 9:41 AM
To: users at fsvs dot tigris dot org
Cc: Bill Michal
Subject: Re: Is it safe to ignore /dev?

Hello Bill!
On Monday 19 November 2007 Bill Michal wrote:
> I'm trying to put my entire Ubuntu system under FSVS. In previous
> it seemed like the /dev folder was always changing or was virtual (not
> of that), so it didn't seem to be a good candidate for revision control.
> So, can I safely ignore /dev?
I'd suggest taking a look at the mounted filesystems:
    # mount | grep "/dev "
    udev on /dev type tmpfs (rw,mode=0755)
In my case the /dev/ data is from a tmpfs, filled by udev; by that
it is created afresh on every boot.

But, depending on your boot process, you might need some files in /dev to be

used for init; they might or might not be done by your initrd.

For "normal" backups you can ignore the /dev/ directory; but if you have a
failure, and need to recover your entire system, you might need some of
nodes to be able to boot.

I know that this is not really helpful.

So my practical tip:
- either just take that into the backups (doesn't really change that often,
  for me at least - YMMV),
- or, to be *really* clean:
  - goto single user mode
  - unmount your /dev
  - copy the basic nodes that are persistent to some other directory,
  - resume to runlevel 3 (or 5 or whatever you normally use),
  - and commit them as /dev.
  - Then define ./dev/** as ignore pattern, so no new entries will be taken.

On a restore you'll get the needed entries, and that should allow you to use

fsvs as full backup tool.

Satiesfied? Any more questions?



Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!

« Previous message in topic | 3 of 4 | Next message in topic »


Show all messages in topic

Is it safe to ignore /dev? portabill Bill 2007-11-19 08:49:03 PST
     Re: Is it safe to ignore /dev? pmarek P.Marek 2007-11-19 09:41:26 PST
         RE: Is it safe to ignore /dev? portabill Bill 2007-11-19 09:53:36 PST
             RE: Is it safe to ignore /dev? pmarek P.Marek 2007-11-20 01:15:01 PST
Messages per page: