|
Home > Archive > Unix administration > July 2007 > Device name from path
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Device name from path
|
|
| jjfahner@gmail.com 2007-07-01, 7:20 pm |
| Hi,
I'm building an incremental backup script using rsync. In order to
decide whether I can use the source directory as the value for --link-
dest when creating the initial backup, I need to known whether the
source and backup directory lie within the same physical filesystem
(or else I get tons of Invalid cross-device link (18) errors).
BTW, I realize that I should always create the initial backup on
another physical filesystem, and I do. It's when I create the first
weekly/monthly snapshot from the then current daily snapshot that I
want to specify the source as link-dest. This works fine, but when the
script is used for the first daily snapshot, it *is* running between
two filesystems, and shouldn't use the source for --link-dest.
Thanks,
JJ
| |
| Barry Margolin 2007-07-01, 7:20 pm |
| In article <1183321531.189214.231100@c77g2000hse.googlegroups.com>,
jjfahner@gmail.com wrote:
> Hi,
>
> I'm building an incremental backup script using rsync. In order to
> decide whether I can use the source directory as the value for --link-
> dest when creating the initial backup, I need to known whether the
> source and backup directory lie within the same physical filesystem
> (or else I get tons of Invalid cross-device link (18) errors).
Use "df <source>" and "df <dest>" and compare the filesystem or mount
point columns.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
| |
| jjfahner@gmail.com 2007-07-01, 7:20 pm |
| On Jul 1, 10:55 pm, Barry Margolin <bar...@alum.mit.edu> wrote:
> In article <1183321531.189214.231...@c77g2000hse.googlegroups.com>,
>
> jjfah...@gmail.com wrote:
>
>
> Use "df <source>" and "df <dest>" and compare the filesystem or mount
> point columns.
>
> --
> Barry Margolin, bar...@alum.mit.edu
> Arlington, MA
> *** PLEASE post questions in newsgroups, not directly to me ***
> *** PLEASE don't copy me on replies, I'll read them in the group ***
Works like a charm. Thanks a lot!
|
|
|
|
|