Device name from path
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix administration > Device name from path




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Device name from path  
jjfahner@gmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-02-07 12:20 AM

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






[ Post a follow-up to this message ]



    Re: Device name from path  
Barry Margolin


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-02-07 12:20 AM

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 ***





[ Post a follow-up to this message ]



    Re: Device name from path  
jjfahner@gmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-02-07 12:20 AM

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!






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:09 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register