For what ever reason, I have a lot of content on my TVbackup drive which isn't on my TV drive.
I want to copy all the files across which are on TVbackup but are not currently on TV.
If there is a file with the same name but a different size or date, I want to copy this across too, perhaps with a (1) after it, or something similar so it doesnt overwrite the existing file.
The end result is that the TV drive will end up having all of the files which are on the TVbackup drive as well as its own files.
My starting point is this:
But how do I make it skip if the same file (size and date) already exists in the destination.
Has anyone seen this before?
if i ls a particular directory (an email Maildir) i get a long list of files, if i 'du -h' that same directory, i get messages like:
du: `./1053894791.17207_0.srweb,S=6199': No such file or directory
strange. so using tab will complete this filename too, giving... (3 Replies)
Hi,
I would like to perform bash which would check the file A.txt to be size 0 or not. If the size is 0, I would copy file B.txt to replace A.txt.
Please help.
Thanks.
-Jason (6 Replies)
Has anyone ever used rsync to copy files locally on one server? (in this case from one SAN volume to another).
I am familiar with using rsync to copy files between servers, but not locally, I would usually use cp or or tar or something.
Is rsync slower? Does it use additional overhead of the... (4 Replies)
Hi,
I am using HP-UX B 11.23
I want to copy files from one directory into another directory in such a way that, only the nonexistent files in target directory are copied from source directory
e.g.
dir1 has
file1
file2
file3
dir2 has
file1
file3
now I want that a command... (7 Replies)
Hi,
i am having a directory in which files are having space in the name .
$ls -1
aa b.txt
my file.pdf
lost file.csv
foo_file.txti want to copy those file to some where with date +%F as extension . But it failed for the file having space.
#!/bin/sh
ls -1 >tt
for var in `cat tt`
do
b=$var... (2 Replies)
Hi,
I am very new to Unix script. Suppose i have a file with column header:
NAME1 NAME2 Address Tel
And I always need to make a file with column header:
ID NAME1 NAME2 EMail Address Tel
For the columns that do not exist in the file, I would still like to make a column with blank.
... (11 Replies)
Hi
This is my situation
I have files on the left which I want to copy to the right. Once the files are copied to the right, they are processed and then deleted. The next time rsync runs I dont want it to copy the same files again, it should only copy any new files to the right.
I have been... (4 Replies)
Hi,
We have two (2) servers named primary and standby. There is a directory named /db01/archive that we need to keep in-sync.
Files get transferred from primary and standby. Sometimes when we do a failover or when there is a network issue, some files fail to get transferred.
I want to use... (3 Replies)
I use this
rsync --progress -r -u /media/andy/MAXTOR_SDB1/Ubuntu_Mate_18.04/* /home/andy/Ubuntu_18.04_Programs/Is there a way to have it not copy files such as these?
2019-02-25_11:04
I found this but can not figure out what it's doing.
3. Exclude a specific file
To exclude a... (5 Replies)
Discussion started by: drew77
5 Replies
LEARN ABOUT DEBIAN
diskd
diskd(1) General Commands Manual diskd(1)Name
diskd - disk daemon; wait for disk to be inserted
Note
This manpage has been automatically generated from fdutils's texinfo documentation. However, this process is only approximative, and some
items, such as cross-references, footnotes and indices are lost in this translation process. Indeed, these items have no appropriate rep-
resentation in the manpage format. Moreover, only the items specific to each command have been translated, and the general information
about fdutils has been dropped in the manpage version. Thus I strongly advise you to use the original texinfo doc.
* To generate a printable copy from the texinfo doc, run the following commands:
./configure; make dvi; dvips fdutils.dvi
* To generate a HTML copy, run:
./configure; make html
A pre-made HTML can be found at: `http://www.tux.org/pub/knaff/fdutils'
* To generate an info copy (browsable using emacs' info mode), run:
./configure; make info
The texinfo doc looks most pretty when printed or as HTML. Indeed, in the info version certain examples are difficult to read due to the
quoting conventions used in info.
Description
The diskd command has the following syntax:
diskd [-d drive] [-i interval] [-e command]
Diskd waits for a disk to be inserted into a given drive, and then either executes the command or exits. This program can be used to auto-
matically mount a disk as soon as it is inserted.
Warning
This program works by switching the motor on for a very short interval, and then seeking to track -1. This might damage hardware in the
long run. Amigas, which also use these techniques, are known for having problems with their disk drives no longer spinning up properly
after a few month of usage.
Options-d drive
Selects the drive to observe for disk insertion. By default, drive 0 (/dev/fd0) is observed.
-i interval
Selects the polling interval. The interval is given in tenths of seconds. Default is 10 (one second).
-e command
Gives the command to be executed when a disk is inserted. If no command is given the program simply exits. Typically, the command
mounts the disk. It can be a shell scripts which probes for several filesystems and disk geometries until it succeeds.
Bugs
* Automatic unmounting cannot yet be handled. It is indeed not enough to scan for disk removal, because when the disk is removed, it
is already too late: There might be some buffers needing flushing. However, the fdmountd program allows automatic unmounting by
using the SYNC mount options, which switches off write buffering (see section fdmount).
* The drive motor is running all the time, and on some computers, the drive led flickers at each time the drive is polled.
See Also
Fdutils' texinfo doc
fdutils-5.5 03Mar05 diskd(1)