[Novalug] rsync question
Brian Steisslinger
brian.steisslinger at gmail.com
Wed May 2 15:11:43 EDT 2007
rsync automatically will update changed files and write new files... unless
you override those options...
On 5/2/07, Megan Larko <larkoc at iges.org> wrote:
>
> Happy May to you!
>
> I think that I am mis-understanding my reading of the "man rsync"
> documentation.
>
> I have two disks, one of which is from a remote location that has been
> "sneaker-netted" to my
> system. The objective is to reconcile the local disk to include files
> picked up by the disk at its
> remote location (The remote box is an ftp script box which gets data as a
> backup to our main ftp
> box. The main box had new hardware put in and was down for two days.
> We want to obtain the data
> no longer on the ftp site from our remote ftp box to the main/primary
> box.)
>
> I mounted the "sneaker-netted" disk to our primary system. The question I
> am asking is "What files
> exist on SRC but not on DEST?"
>
> From "man rsycn" I came up with "rsync -an -e --ignore-existing
> /megtmp/DATA/ /DISK1/DATA/"
> I directed the output to a file. My understanding is that -a is "archive"
> -n is "dry-run"---don't
> actually move any data and -e --ignore-existing is to 'ignore files that
> already exist on the receiver'.
>
> The output in my file seemed to be files in-common.
> [larkoc at crew 200704]$ ls -l
> /megtmp/DATA/TRMM/3B4xRT/200704/3B42RT.2007041606.bin
> -rw-r--r-- 1 1000 users 3458880 Apr 17 07:24
> /megtmp/DATA/TRMM/3B4xRT/200704/3B42RT.2007041606.bin
> [larkoc at crew 200704]$ ls -l
> /DISK1/DATA/TRMM/3B4xRT/200704/3B42RT.2007041606.bin
> -rw-r--r-- 1 larkoc larkoc 3458880 Apr 18 07:24
> DISK1/DATA/TRMM/3B4xRT/200704/3B42RT.2007041606.bin
>
> [larkoc at crew 200704]$ ls -l
> /megtmp/DATA/NRL/6-hour/200704/200704160000.6.pmw
> -rw-r--r-- 1 1000 newspi 1382400 Apr 16 04:32
> /megtmp/DATA/NRL/6-hour/200704/200704160000.6.pmw
> [larkoc at crew 200704]$ ls -l
> /DISK1/DATA/NRL/6-hour/200704/200704160000.6.pmw
> -rw-rw-r-- 1 larkoc larkoc 1382400 Apr 16 04:31
> /DISK1/DATA/NRL/6-hour/200704/200704160000.6.pmw
>
> How should I craft my command to get files that exist only on
> /megtmp/DATA/ but that do not exist on
> /DISK1/DATA/?
>
> Thanks!
> megan
> _______________________________________________
> Novalug mailing list
> Novalug at calypso.tux.org
> http://calypso.tux.org/cgi-bin/mailman/listinfo/novalug
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://calypso.tux.org/pipermail/novalug/attachments/20070502/d3c2ed5c/attachment.html
More information about the Novalug
mailing list