fcopy: Copy newer files only

Thomas Lange lange at informatik.uni-koeln.de
Wed May 2 15:57:18 CEST 2012


>>>>> On Wed, 02 May 2012 15:12:47 +0200, Andreas Heinlein <aheinlein at gmx.com> said:

    > is there any way to make fcopy compare files only based on metadata 
    > (namely mtime)?
No. fcopy was created for text files, not for hughe binary blobs.
I think you can write such a function in a few lines of shell code.
Use test -nt for testing if a file is newer than another and a simple
for loop for selecting the class name.

    > changed. I read about the -P option in the manpage but don't understand 
    > how it works. Could someone give me an explanation?
The option -P will be removed in FAI 4.0.

-- 
regards Thomas


More information about the linux-fai mailing list