Displaying 20 results from an estimated 5000 matches similar to: "Using rsync to mirror a hard drive."
2001 Oct 24
1
Generating cpio list.
One of the things I want to do besides mirror a hard drive is
maintain an incremental backup on tape.
The way for me to do this ( of course ) is to take the
output of rsync and use it to generate a list of files for cpio.
The basic ideal is something like this
declare -i head tail
# gets the first line with total: at the begining
head=$(grep -n ^total: $log_rsync|awk -F: '{print $1}')
2002 Mar 20
2
include exclude help please.
hi.
I know this is a big topic on the list, please forgive me.
rsync -avv --include "/film/jonah/**/sourceimages/*.tif" --exclude "*" /film /tmp
i'm trying to copy all *.tif 's that are in a */sourceimages/ directory
and that are only under /film/jonah.
i would like to copy the directory tree and tif files to /tmp
i was able to copy ever tif with:
rsync -a
2005 May 13
2
not deleting from the root
I have a bit of an issue with rsync. I am using to keep directories in
sync via another server for backup.
Here is the server config
[w1]
path = /w1
comment = w1 web dir
[w2]
path = /w2
comment = w2 web dir
Now on the client i run this command
rsync -avv --delete --force domain.com::w1/ /w1/
It will NOT delete anything that is no on the server anymore.. for
example on the server/client there
2011 Oct 14
2
rsync compares all files again and again
Hi,
we do a 1:1 backup from our main raid to a backup raid every night with
rsync -a --delete /mnt/raid1/ /mnt/raid2
rsync is 3.09, filesystems are ext3, OS is SLES 11 SP1.
The rsync process takes several hours, even if no file has changed at all.
Using -vv I see that rsync compares all files every time and that takes
long for some hundreds of millions of small files.
Can I tell rsync it
2002 Apr 12
1
is there a `newer' function
Hope I haven't just blindly overlooked this in man rsync:
1)
Some way to run rsync with any of the usual command lines but only
applicable to files newer than some stipulated date.(on the source)
2)
Some tricky way to redirect where the transferred files go.
Example:
rsync -avv source target real_destination
Where all rsync computations are done comparing files in source to
files in
2009 Jan 15
2
--compare-dest; I'm missing the boat
I must be seriously misunderstanding the man page coverage of
--compre-dest. My take was that if a file in compare-dest=dir
matches a file in SOURCE/ then it won't be transferred to DEST/.
I tried this test. (d1 has single files and 2 subdir with files)
cp -a d1 d1a
mkdir d2
rsync -avv --compare-dest="./d1a" d1/ d2/
d1a is carbon copy of d1 but still every last file in
2004 Jul 06
4
not updating changed local files
rsync version 2.4.6 protocol version 24
gin@rhysling:~> rsync -avv ~/share/cvs-xemacs-head/XEmacs/xemacsweb ~/share/public_html/xemacsweb
building file list ... done
...
xemacsweb/About/XEmacsServices.content is uptodate
...
gin@rhysling:~> ls -l {~/share/cvs-xemacs-head/XEmacs/xemacsweb,~/share/public_html/xemacsweb}/About/XEmacsServices.content
-rw-r--r-- 1 gin sdu
2004 Jun 14
1
stalling during delta processing
I have a 29 Gig full backup on a remote server (lets call if fedor) that is called Kbup_1.
I have a 1.3 Gig incremental backup on my local server.
I have rsync 2.6.2 on both servers. Both are RedHat Linux 9.1 on i-686 hardware platforms.
I issue the command "time rsync -avv --rsh=rsh --stats /test/Kibbutz/Kbup_1 fedor://test/Kibbutz". The synch takes ~5 minutes of real time and about
2010 Oct 23
2
How to escape "()" characters in commad
I have the following command:
/usr/local/bin/rsync -avv 'Jeffrey?s iPhone (Root)'/ 'Macintosh
HD'/Users/jeffrey/Downloads/iphone_backup
Unfortunately, it's barking when it hits the "(".
-bash: syntax error near unexpected token `('
How can I escape this?
Thanks.
--
View this message in context:
2003 Apr 19
2
rsync: read error: Connection reset by peer
Getting the following error:
% rsync -avv --temp-dir=/var/tmp/ --exclude-from=../kde-redhat-exclude --delete --delete-excluded rsync://apt.unl.edu/apt/7.3/ 7.3/
rsync: read error: Connection reset by peer
rsync error: error in rsync protocol data stream (code 12) at io.c(177)
rsync: connection unexpectedly closed (56109 bytes read so far)
rsync error: error in rsync protocol data stream (code
2005 Mar 21
1
exclude problem
I have looked on the mailing lists and through rsync documentation but those
still haven't solved my problem. I may be calling rsync incorrectly but the
problem I have is that the exclude file seems to be ignored. My final goal is
to replicate an entire host, excluding some files that contain specific IP,
hostname configuration things. I'm trying to start small by mirroring a
2014 Feb 14
2
problem with rsync-daemon via ssh
I'm trying to transfer something to another machine launching a
once-only "daemon" through ssh with this command:
rsync -avv -e "ssh -l user" ./orig/ machine::module/
where "module" is the name of a file in the home dir of user with the
following:
path = /path/to/home/transfer
The ssh connection works without passphrase. This is the error:
opening connection
2007 Dec 28
1
Odd behavior with --detect-renamed
Hello,
I'm totally new to this list, so I hope I don't break all the rules. :)
I've looked through the archives (and google), and I really can't find the
answer to my question.
I'm trying out the 'detect-renamed'-patch, and I've encountered some odd
behavior. I've applied the patch to both rsync-2.6.9 and rsync-3.0.0pre7,
and it's the same behavior.
2003 Aug 22
1
rsync daemon and secrets file
I'm trying to understand how to properly setup the
/etc/rsyncd.conf file to run an rsync daemon with a
secrets file specified in a module - the rsync.conf
manpage does not spell it out clearly enough.
Rsync server is rsync-2.5.6.
If this is my /etc/rsyncd.conf file:
------------------------------------
log file = /var/log/rsync
uid = root
gid = root
[test]
uid = rsync1
gid =
2004 Jan 11
1
comparing 2 in rsync
Hi,
Is there a sure way to test 2 cd's if they are true copies in rsync.
I have tried this...
rsync -avv /mnt/cdrom/ /mnt/cdrom2
**
result....quite shotened...
misc/rpm2header is uptodate
pkg-9.2-FiveStar-download-i586.idx is uptodate
total: matches=0 tag_hits=0 false_alarms=0 data=0
wrote 65301 bytes read 20 bytes 1789.62 bytes/sec
total size is 679261427 speedup is 10398.82
**
Is
2005 Jan 27
1
rsync clobbering links?
When using rsync -avv to recursively copy a local directory on a
remote server, and if the remote server has a symbolic link of the
same name pointing to some other directory, then that remote symlink
is clobbered in favor of the hard-wired path. I looked at the man
page and other rsync documentation about copying links, but not of the
options seemed to apply in my case. The closest was
2005 Sep 22
2
Return value ???
Hi!
Is it normal to get different return codes from the same rsync command
(except for the verbosity option)??
The directory where we want to rsync don't permit write operations (so
we should get an
"Permission denied" (23) code.
Note that we "rename" the file to file2 in the destination directory.
We just type:
> rsync -a file server:dir_without_permisions/file2
2004 Aug 06
1
rsync to Mac OS X question
I'm am currently setting up a simple backup system using rsync. I am
backing up users home directories to a central backup machine, and then
exporting those backups via NFS back to their host machines.
I had this set up and working under Linux (kernel 2.4.21) but have since
decided to give Mac OS X a try, and moved the system over to a brand new
Xserve G5.
It was actually quite painless to
2002 Sep 03
1
rsync process never finishes
Hi,
I've got a Debian 3.0 machine from which I initiate rsync connections over
ssh to winNT/2k boxen, where sshd is running as a service, to grab files
from the windows machines.
I don't get any error from either side of the connection. The directory I
indicate is transferred as well as every sub directory, just not any of the
files in the sub directories. The process seems to be running
2009 Jul 08
1
rsync Windows to opensolaris or linux
I know this subject has been covered a fair bit here but I'm getting
confused with the vast array of possible options I've seen in various
cmdlines posted here, and the vast (and sometimes confusing) rsync
manual.
Can someone show me the simplest case to allow rsync to push data from
a windows XP or vista machine onto an opensolaris host using rsync on
cygwin?
What options are commonly