10-30-2012
Not yet, im paranoid about deleting my data.
So, if I have my setup like this:
TV
TVbackup- File 1 (Older)
- File 2
- File 3
Then I run this command:
Quote:
rsync /media/tvbackup /media/tv
I should end up with this result on the
TV drive:
- File 1 (Newer)
- File 2
- File 3
- File 4
How can I get it so if there is a file with the same name on the destination as on the source, but a different size or datemodified, then the source will still be moved to the destination but with a different filename, such as file(1) or file(new).
This is 2TB of my music, movies and documents so I'm a little paranoid.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
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)
Discussion started by: dittonamed
3 Replies
2. Shell Programming and Scripting
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)
Discussion started by: ahjiefreak
6 Replies
3. Solaris
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)
Discussion started by: BG_JrAdmin
4 Replies
4. HP-UX
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)
Discussion started by: Chetanaz
7 Replies
5. UNIX for Dummies Questions & Answers
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)
Discussion started by: posix
2 Replies
6. Shell Programming and Scripting
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)
Discussion started by: nightrider
11 Replies
7. Shell Programming and Scripting
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)
Discussion started by: duonut
4 Replies
8. UNIX for Dummies Questions & Answers
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)
Discussion started by: newbie_01
3 Replies
9. Shell Programming and Scripting
RootFolderI:
RootFolderI/FolderA/Subfolder1/Subsub1/JPG1.jpg -> want this jpg
RootFolderI/FolderA/Subfolder2/Subsub1/JPG2.jpg -> want this jpg
RootFolderI/FolderA/Subfolder2/Subsub2/JPG3.jpg
. . .
RootFolderI/FolderB/Subfolder1/Subsub1/JPG4.jpg -> want this jpg
... (1 Reply)
Discussion started by: blocnt
1 Replies
10. Ubuntu
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
array-info
array-info(1) array-info(1)
NAME
array-info - check the status of a HP (Compaq) SmartArray controller
SYNOPSIS
array-info -d array_device_path [-a|-l|-A|-c|-s|-L|-h]
DESCRIPTION
Array-info is a command line tool to retrieve informations and logical drives status from several RAID controllers (currently HP Compaq IDA
and CISS and MD). It displays informations about the firmware version, Rom revision, number of physical and logical drives on the con-
troller, aswell as the fault tolerance, size, number of physical disks and status for each logical drive.
OPTIONS
--device | -d
Path to array device, e.g. /dev/ida/c0d0 or /dev/cciss/c0d1
--all-drives | -a
Show informations about all drives
--logical drive | -l
Show informations about selected logical drive
--show-ctrl | -c
Show informations about controller
--show-logical | -L
Show informations about logical drives
--show-physical | -p
Show physical device informations
--show-status | -s
Show status of logical drives
--show-all | -A
Show all informations
--version | -V
Show version
-h Show help about options
COPYRIGHT
This manual page was written by Raphael Pinson <<raphink@ubuntu.com>>. Permission is granted to copy, distribute and/or modify this docu-
ment under the terms of the GNU General Public License, Version 2 or any later version published by the Free Software Foundation.
2006-12-15 array-info(1)