Hi Guys! I was trying to take a archive backup of the server that we
run. I used the pax utility as pax -w -v -f (filename) /
I was in a directory /dos/c/subdir where /dos/c is our jazz drive. It
started creating a backup of all files but it started from
/dev and completely ignored /alt and /bin directories. Is this what its
supposed to do…
Also when it came to /dos/c it started copying the files that are on the
jazz (i.e. in /dos/c/other_sub_dir too) and in fact it
even came to backing up the archive I was creating… Is this normal
too. Is there an option that can be used to ignore certain
directories under root while archiving it. I would appreciate a detailed
response as I am pretty new to QNX (or any UNIX type
system)
I can’t comment on why /alt and /bin are being missed, maybe permissions ??
I don’t know.
If you specify / you will get everything under / including /dev and /dos.
Why not be more specific about the directories you specify (e.g., pax -w -v
/alt /bin /OtherDirectories > archive.tar). Alternatively you can use find
to select the files to be archived and pipe them to pax. Using find based on
time you can also do incremental backups (e.g., find / SomeFindOptions |
pax -w -v > archive.tar). Just make sure that the archive is not in the
path being archived.
Hi Guys! I was trying to take a archive backup of the server that we
run. I used the pax utility as pax -w -v -f (filename) /
I was in a directory /dos/c/subdir where /dos/c is our jazz drive. It
started creating a backup of all files but it started from
/dev and completely ignored /alt and /bin directories. Is this what its
supposed to do…
Also when it came to /dos/c it started copying the files that are on the
jazz (i.e. in /dos/c/other_sub_dir too) and in fact it
even came to backing up the archive I was creating… Is this normal
too. Is there an option that can be used to ignore certain
directories under root while archiving it. I would appreciate a detailed
response as I am pretty new to QNX (or any UNIX type
system)
I can’t comment on why /alt and /bin are being missed, maybe permissions
??
I don’t know.
If you specify / you will get everything under / including /dev and /dos.
Why not be more specific about the directories you specify (e.g.,
pax -w -v
/alt /bin /OtherDirectories > archive.tar). Alternatively you can use find
to select the files to be archived and pipe them to pax. Using find based
on
time you can also do incremental backups (e.g., find / SomeFindOptions |
pax -w -v > archive.tar). Just make sure that the archive is not in the
path being archived…
“lalit” <> lalit@engrs.unl.edu> > wrote in message
news:> 39C1932C.E6FB2222@engrs.unl.edu> …
Hi Guys! I was trying to take a archive backup of the server that we
run. I used the pax utility as pax -w -v -f (filename) /
I was in a directory /dos/c/subdir where /dos/c is our jazz drive. It
started creating a backup of all files but it started from
/dev and completely ignored /alt and /bin directories. Is this what its
supposed to do…
Also when it came to /dos/c it started copying the files that are on the
jazz (i.e. in /dos/c/other_sub_dir too) and in fact it
even came to backing up the archive I was creating… Is this normal
too. Is there an option that can be used to ignore certain
directories under root while archiving it. I would appreciate a detailed
response as I am pretty new to QNX (or any UNIX type
system)
I worked on a project where I had to do something like this.
There are some issues for pax such as whether to follow a
soft link or not. I took the approach of first creating
a list of files on the disk starting at / and working my
way down. This was very non-trivial. Something that
looks like a directory can be a soft link, a mount
point, or a directory. There was also some very
strange behavior related to the /.boot and /.altboot
files. I suspect it was related to their weird
permissions.
Previously, lalit wrote in comp.os.qnx:
Hi Guys! I was trying to take a archive backup of the server that we
run. I used the pax utility as pax -w -v -f (filename) /
I was in a directory /dos/c/subdir where /dos/c is our jazz drive. It
started creating a backup of all files but it started from
/dev and completely ignored /alt and /bin directories. Is this what its
supposed to do…
Also when it came to /dos/c it started copying the files that are on the
jazz (i.e. in /dos/c/other_sub_dir too) and in fact it
even came to backing up the archive I was creating… Is this normal
too. Is there an option that can be used to ignore certain
directories under root while archiving it. I would appreciate a detailed
response as I am pretty new to QNX (or any UNIX type
system)