<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: incremental backup fail in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/incremental-backup-fail/m-p/4467899#M37698</link>
    <description>&lt;!--!*#--&gt;&amp;gt; [...] -exec cp -rv bck/ {} \;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] exec cp -v bck/ {} \;&lt;BR /&gt;&lt;BR /&gt;Are you trying to copy "bck/" into some file,&lt;BR /&gt;or some file into "bck/"?&lt;BR /&gt;&lt;BR /&gt;"man cp"?&lt;BR /&gt;&lt;BR /&gt;When you figure out the difference between&lt;BR /&gt;    cp a b&lt;BR /&gt;and&lt;BR /&gt;    cp b a&lt;BR /&gt;you might also wish to look at "cp -p".</description>
    <pubDate>Tue, 28 Jul 2009 10:20:18 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2009-07-28T10:20:18Z</dc:date>
    <item>
      <title>incremental backup fail</title>
      <link>https://community.hpe.com/t5/operating-system-linux/incremental-backup-fail/m-p/4467898#M37697</link>
      <description>/devel_x098 is a samba server share(windows xp users access this directory)...and I have to take regular backups of this directory(/devel_x098)&lt;BR /&gt;&lt;BR /&gt;test-back:/devel_x098 # find /devel_x098/AchDev_dvl1/ -mtime -1 -type f -print&lt;BR /&gt;/devel_x098/AchDev_dvl1/M AHSAN/text/16BIT_roof108_ROOF.jpg&lt;BR /&gt;/devel_x098/AchDev_dvl1/M AHSAN/text/New Folder/Thumbs.db&lt;BR /&gt;/devel_x098/AchDev_dvl1/M AHSAN/text/New Folder/brick222225.psd&lt;BR /&gt;/devel_x098/AchDev_dvl1/ADEEL AHMED/STATUS REPORT OF 09-07-09.ods&lt;BR /&gt;&lt;BR /&gt;test-back:/devel_x098 # find /devel_x098/AchDev_dvl1/ -mtime -1 -type f -exec cp -rv bck/ {} \;&lt;BR /&gt;cp: cannot overwrite non-directory `/devel_x098/AchDev_dvl1/M AHSAN/text/16BIT_roof108_ROOF.jpg' with directory `bck/'&lt;BR /&gt;cp: cannot overwrite non-directory `/devel_x098/AchDev_dvl1/M AHSAN/text/New Folder/Thumbs.db' with directory `bck/'&lt;BR /&gt;cp: cannot overwrite non-directory `/devel_x098/AchDev_dvl1/M AHSAN/text/New Folder/brick222225.psd' with directory `bck/'&lt;BR /&gt;cp: cannot overwrite non-directory `/devel_x098/AchDev_dvl1/ADEEL AHMED/STATUS REPORT OF 09-07-09.ods' with directory `bck/'&lt;BR /&gt;&lt;BR /&gt;test-back:/devel_x098 # ls bck/&lt;BR /&gt;test-back:/devel_x098 #&lt;BR /&gt;&lt;BR /&gt;test-back:/devel_x098 # find /devel_x098/AchDev_dvl1/ -mtime -1 -type f -exec cp -v bck/ {} \;&lt;BR /&gt;cp: omitting directory `bck/'&lt;BR /&gt;cp: omitting directory `bck/'&lt;BR /&gt;cp: omitting directory `bck/'&lt;BR /&gt;cp: omitting directory `bck/'&lt;BR /&gt;test-back:/devel_x098 # ls bck/&lt;BR /&gt;test-back:/devel_x098 #&lt;BR /&gt;&lt;BR /&gt;the 'bck' is empty.&lt;BR /&gt;&lt;BR /&gt;please help</description>
      <pubDate>Tue, 28 Jul 2009 08:45:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/incremental-backup-fail/m-p/4467898#M37697</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2009-07-28T08:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: incremental backup fail</title>
      <link>https://community.hpe.com/t5/operating-system-linux/incremental-backup-fail/m-p/4467899#M37698</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] -exec cp -rv bck/ {} \;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] exec cp -v bck/ {} \;&lt;BR /&gt;&lt;BR /&gt;Are you trying to copy "bck/" into some file,&lt;BR /&gt;or some file into "bck/"?&lt;BR /&gt;&lt;BR /&gt;"man cp"?&lt;BR /&gt;&lt;BR /&gt;When you figure out the difference between&lt;BR /&gt;    cp a b&lt;BR /&gt;and&lt;BR /&gt;    cp b a&lt;BR /&gt;you might also wish to look at "cp -p".</description>
      <pubDate>Tue, 28 Jul 2009 10:20:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/incremental-backup-fail/m-p/4467899#M37698</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-07-28T10:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: incremental backup fail</title>
      <link>https://community.hpe.com/t5/operating-system-linux/incremental-backup-fail/m-p/4467900#M37699</link>
      <description>thanks Steven for reply&lt;BR /&gt;&lt;BR /&gt;I got the mistake the right way is&lt;BR /&gt;&lt;BR /&gt;find /devel_x098/AchDev_dvl1/ -mtime -1 -type f -exec cp -v  {} bck/  \;&lt;BR /&gt;and the command is working.&lt;BR /&gt;&lt;BR /&gt;But instead of running the above command, if I run  the following command &lt;BR /&gt;find /devel_x098/AchDev_dvl1/ -mtime -1 -type d -exec cp -rv  {} bck/  \;&lt;BR /&gt;&lt;BR /&gt;then if a single file is modified/created the whole directory backs up.&lt;BR /&gt;&lt;BR /&gt;e.g under "/devel_x098/AchDev_dvl1/TEST/CORE", if I just create a file or modified a file, then complete "devel_x098/AchDev_dvl1/TEST/CORE" backs up.&lt;BR /&gt;&lt;BR /&gt;actually I want to use the second command because I have several 'same name' file under sub-directories of "/devel_x098/AchDev_dvl1/", so I want to sustain the directories too.&lt;BR /&gt;&lt;BR /&gt;Regards &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Tue, 28 Jul 2009 11:08:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/incremental-backup-fail/m-p/4467900#M37699</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2009-07-28T11:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: incremental backup fail</title>
      <link>https://community.hpe.com/t5/operating-system-linux/incremental-backup-fail/m-p/4467901#M37700</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] I want to sustain the directories&lt;BR /&gt;&amp;gt; too.&lt;BR /&gt;&lt;BR /&gt;"tar" may be more useful than "cp" for this. &lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;ra# mkdir bck&lt;BR /&gt;ra# tar cf - root/fred/lame1.c | ( cd bck ; tar xf - )&lt;BR /&gt;ra# ls -lR bck&lt;BR /&gt;bck:&lt;BR /&gt;total 2&lt;BR /&gt;drwxr-xr-x   3 root     root         512 Jul 28 10:09 root&lt;BR /&gt;&lt;BR /&gt;bck/root:&lt;BR /&gt;total 2&lt;BR /&gt;drwxr-xr-x   2 root     root         512 Jul 28 10:09 fred&lt;BR /&gt;&lt;BR /&gt;bck/root/fred:&lt;BR /&gt;total 2&lt;BR /&gt;-rw-r--r--   1 root     root         192 Mar  5  2008 lame1.c&lt;BR /&gt;ra#&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;GNU "tar" has some more helpful options to&lt;BR /&gt;use in situations like this, but any old&lt;BR /&gt;"tar" can be made to work.  A Forum search&lt;BR /&gt;for keywords like&lt;BR /&gt;      tar pipeline&lt;BR /&gt;may find more detailed examples.</description>
      <pubDate>Tue, 28 Jul 2009 14:11:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/incremental-backup-fail/m-p/4467901#M37700</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-07-28T14:11:19Z</dc:date>
    </item>
  </channel>
</rss>

