Rsync is a fast and extraordinarily versatile file copying tool. It can copy locally, to/from another host over any remote shell, or to/from a remote rsync daemon

learn more… | top users | synonyms

0
votes
1answer
74 views

RSYNC with different directory structures

I'm trying to accomplish the below with RSYNC but can't quite figure out the syntax. My source contains a folder for each user, then some subfolders under Logs. I need to capture everything under ...
-1
votes
2answers
94 views

Consecutive Remote Rsync Commands (Purpose Defeated by Multiple Password Prompts)

I have two huge folders that I want to rsync one after the other using one command. Command 1: rsync --compress /home/user/folder/ user@192.168.1.10:/home/user/a/folder Command 2: rsync ...
5
votes
4answers
732 views

rsync/ssh/rsnapshot backup — remote script execution

I have the following settings in my configuration file: (/etc/rsnapshot.conf) Script/Tool: http://www.rsnapshot.org/ backup_script ssh root@host.domain.com "sh /home/user/backup_mysql.sh" ...
0
votes
1answer
74 views

copying files using non-root rsync

I have a primary server and a secondary server and I wish to copy files over from the primary to the secondary using rsync. I have mounted the primary disk onto the secondary using NFS and am copying ...
0
votes
1answer
201 views

Unable to install rsync on mycloud.rackspace.com

I'd like to install rsync to do daily backups of my client's server account, which was recently migrated to mycloud.rackspace.com. Rackspace does have a tutorial implying it can be installed in the ...
0
votes
3answers
439 views

rsync over ssh server to server backup

I have a server that holds all my backups and I would like to back them up to another server. I was just wondering the best way to do this. do I setup rsync or use scp? I would also like to keep ...
1
vote
3answers
146 views

IPTables allow then block with active connection

I have a backup server and I was wondering if I set a cron job to allow connection from a server in IPTables then once it connects with rsync, can I use IPTables to then shut off the port to prevent ...
3
votes
2answers
1k views

Disable reverse lookup in rsync daemon

I'm having an issue with some rsync modules being served through rsync --daemon This lines are from my /var/log/rsyncd.log file : 2013/02/08 12:15:28 [13174] name lookup failed for XXX.XXX.XXX.XXX: ...
1
vote
1answer
118 views

How to I get rsync to exlcude a file pattern within an flock?

I have an rsync command that I run hourly via cron, and to prevent it from having multiple simultaneous rsyncs (should the previous hour's rsync still be running when the next hour comes around) I've ...
1
vote
1answer
1k views

Rsync Exit Code Checker - Bash

I have a simple script on my home server to sync data to my backup drive to be stored. Right now it runs multiple rsyncs one after another. Sometimes rsync fails on one or two of them. When this ...
0
votes
2answers
1k views

Host key verification failed [rsync: connection unexpectedly closed]

I have been stuck with a peculiar problem, where rsync command is not running when it is executed through crontab. Below is the code : #!/bin/sh -x ...
0
votes
2answers
168 views

Sync files between two computers connected to same network using rsync command [duplicate]

Possible Duplicate: Need help w/ rsync I have two computers connected to the same network, say Computer A and Computer B. Computer A has some backup files in a directory that needs to be ...
0
votes
1answer
51 views

rsync source code

I want to copy source code files from a remote file system to the local server. The source code file extensions are *.?pp, *.[CHh]. How can I run an rsync to copy the remote file system hierarchy and ...
1
vote
2answers
2k views

Rsync process is killed abruptly during backup over SSH

I have an rsync backup script to transfer data between two Ubuntu servers (located in different countries). The data being backed up is quite large in terms of number of files. It is about 17GB in ...
2
votes
0answers
95 views

rsync won't delete file that was deleted on source

I'm using rsnapshot to back up some servers of mine. It works fine, except it won't delete files that have been deleted on the source server. Here is where I give rsnapshot the options to pass along ...
2
votes
1answer
486 views

rsync --inplace not reading target file?

I'm trying to optimize the daily backup of a LVM snapshot of a large MySQL database. It works quite ok when I just cp the files (local RAID to other local RAID), with an average speed of ~100MB/s. But ...
0
votes
2answers
110 views

What directories absolutely need to be in a full system backup? [closed]

I'm currently configuring an Ubuntu Server system and would like to perform routine backups using rsync. The goal is to have the right files backed up so that I can use the backup to create an ...
0
votes
2answers
137 views

is running rsync after filesystem crash enough?

On my Debian Squeeze server, a filesystem crashed badly. I ran fsck.ext4 on it and it corrected many things. Now everything seems to be fine. Additionally, ran an rsync from a recent backup to the ...
0
votes
1answer
42 views

rsync synchronizing files only without creating folders on destination

Is it possible with rsync to not create directories on destination? MY SOURCE: a/ a/x.txt b/ b/y.txt b/c/g.txt MY WANTED DESTINATION: d/x.txt d/y.txt d/g.txt Is there any way to do this with ...
1
vote
1answer
422 views

How to make sshfs + VPN + git a tolerable working environment?

Currently the code base for the project I am working on is remotely on a company server. and it has to stay like that. also the remote git repository cannot be made public. My current setup is: ...
1
vote
1answer
157 views

rsync from linux host to fat32

i like to backup my linux based NAS (small files like picutres) to an attached USB Disk with FAT32. For this i like to use rsync. I know, that this will not work correct per default. rsync will sync ...
2
votes
3answers
1k views

How can I allow the user “postgres” on one server to rsync to another?

I'm trying to get this command to work as the user postgres (so I can ship wal files): rsync -a /tmp/test postgres@server2:/tmp/test But I get the error: Permission denied (publickey). I've run ...
0
votes
1answer
234 views

Using NFS mount script with grandfather father-son script but only getting 6 daily backups. I should also have 4 weekly and 2 monthly backups

I'm using rsync to clone changes from a remote server(MT DV4.0) to a local one(ubuntu 11.10). I'm then using the following copy/paste script to compress then archive the files. #!/bin/bash ...
2
votes
1answer
3k views

Force rsync to copy symlink, even if referent does not exist

I am getting this message with rsync: symlink has no referent: "/a/path" Well, rsync is right: in the source filesystem, the (symbolic) link is pointing to a non-existent location. That is ...
1
vote
1answer
318 views

Rsync to windows FTP over curlftpfs fails to set permissions

I'm transferring some large files (1.5Gb) to a windows FTP server in a cronjob. It's going over a 2Mbit ADSL line, with 512Kbit upstream. So it takes forever, and can be prone to dropping to line. I ...
4
votes
3answers
166 views

Backup Permissions for Entire File System

Here's the skinny: I have a Linode VPS that I want to backup to my local laptop via rsync. I have just generated ssh keys for the communication and left a blank passphrase for the private key so I can ...
0
votes
1answer
109 views

How can I refer to my machine (client) when remoted in to a server via ssh?

This comes up with surprising frequency: I am on a server or other machine via ssh. I want to scp or rsync some files back to my client machine. The problem is that I am behind a firewall and I don't ...
0
votes
0answers
44 views

Backup laptops mac address in local network

I am looking for a good method to automatically clone directories from laptops that is currently connected to the local network to a server on the same local network at a regular interval in a small ...
10
votes
2answers
309 views

Server migration: most efficient way

I have been tasked with migrating one of our sites between servers (two different hosts). Both environments are linux. The site streams video, so the server is currently filled with media files ...
4
votes
1answer
446 views

rsync copies unmodified files between different file systems

I try to synchronize files between two machines using rsync, but it seems to copy all the files regardless file modification time. Two consecutive call of the command produces the same results, so it ...
1
vote
1answer
421 views

How to modify ssh_args in rsnapshot config?

I have a global rsnapshot config file for all machines that we backup. The global file has ssh_args -p 123 The machine specific files include the global config file and tries to override the port: ...
1
vote
1answer
31 views

rsync from machine a to machine c

I have gentoo Linux. I want to RSync to a remote machine that I need to SSH twice to get into. how can I do that in one command ? I used to do that with one command but I forgot how! I used to do ...
2
votes
1answer
147 views

Is there a global config file for Unison synchronization tool?

I'd like all my unison profiles to have merge = Name * -> meld CURRENT1 CURRENT2 diff = /usr/bin/meld CURRENT1 CURRENT2 confirmmerge = true as options. I know I can add these options to each ...
0
votes
2answers
701 views

limit the speed of writing files to NFS

CentOS 5.6 NFS is mounted on the server for backup disk space. When the backup job started, it could reach 80MB/s and we really do not expect it took so much bandwidth. So i need to find a way to ...
2
votes
2answers
175 views

Copy entire filesystem in a folder where a raid-1 array is mounted

I am trying to migrate from a single disk drive system to a double disk drive software raid-1 system that already has a running system on it. Meaning that formatting and having a new installation of ...
6
votes
8answers
1k views

make a cronjob wait for previous rsync job to finish

I'm using rsync to backup some data from one server to another. All works fine, but it might take longer to finish depending on how much data there is to transfer. Is there any gauranteed way to ...
7
votes
3answers
2k views

Rsync show progress for individual file

I'm using rsync to upload/download a pretty large file (20Gb). I'm aware of --progress option, but what it does in my case is just showing me the result at the end. My problem is that during some ...
3
votes
1answer
587 views

Why does rsync forks itself? And why one such forked process is almost kinda idle (as seen in iotop)?

This is referring to the matter stated here and I am also experiencing the same. In one of my servers, I ran an rsync, to backup a huge directory (size greater than 300 Gb) to a different disk, ...
4
votes
1answer
622 views

rsync / rsnapshot

I am using rsnapshot and my config is as follows: config_version 1.2 snapshot_root /home/user/.snapshots/ cmd_cp /bin/cp cmd_rm /bin/rm cmd_rsync /usr/bin/rsync cmd_ssh /usr/bin/ssh ...
1
vote
2answers
132 views

last resort linux backup (rsync) will this work?

I have some linux servers mostly Centos Web hosting servers (Cpanel, Directadmin, kloxo). I have some backup systems implemented, but I like to keep a local backup on my home computer. This will be ...
0
votes
2answers
104 views

Preventing Rsync From Saving To A Local Drive

I have a shell script on my Ubuntu 10.04 Server that runs every night and uses rsync to backup files to an external share mounted to the /media/backups folder. The problem is, sometimes the drive ...
0
votes
3answers
272 views

rsync without password, none of google (server fault) tutorials worked

I need to use rsync for a daily backup operation and in the past (on different servers) I managed to just use a rsa key etc, but now none of google (serverfault) tutorials work at all. It keeps ...
1
vote
1answer
107 views

What shell script is calling rsync? [closed]

For the last couple of days, I've woken up to find rsync churning away with 1.6GB of memory, slowing my Mac down significantly. Activity Monitor only says that rsync is coming from sh, but I'm trying ...
3
votes
3answers
561 views

How to keep multiple servers in sync file wise?

I'm currently managing a cluster of PHP-FPM servers, all of which tend to get out of sync with each other. The application that I'm using on top of the app servers (Magento) allows for admins to ...
1
vote
1answer
215 views

How to tell rsync not to touch the destination directory permissions?

I am using rsync to sync a directory from a machine to another but I encountered the following problem: the destination directory permissions are altered. rsync -ahv defaults/ root@hostname:~/ The ...
0
votes
3answers
479 views

rsynced files not getting proper ACL

I use rsync (rsync-3.0.6-5.el6_0.1.x86_64 on Scientific Linux 6) to transfer files from a VFAT disk to an NFS mounted ext3 file system. I have ACLs set up on the ext3 system and all works as expected ...
3
votes
1answer
136 views

FreeBSD restore of /rescue

I'm running a restore from a previous backup of my FreeBSD system, and run into trouble when restoring / (excluding mount-points). The problem is that /rescue fills the / partition (to the extent that ...
0
votes
1answer
110 views

Subsequent runs of rsync locally don't reduce data transferred

I have an EC2 instance with data I want to sync to a mounted, but remote, volume, as a backup. rsync seems like the way to go with this, so as a test I took my test file (a Postgres pg_dump file) and ...
1
vote
5answers
328 views

Setting up SSH Key securely for SCP/rsync to run without password

This is how I am currently doing it: # ssh-keygen -t dsa -b 1024 -f /root/localhost-rsnapshot-key Enter passphrase (empty for no passphrase): [press enter here] Enter same passphrase again: [press ...
1
vote
0answers
97 views

MySQL binlog rsync from tmpfs to HDD causes write slowdown on ramdisk

I have a mysql database server and am testing writing my binlogs to ramdisk to speed some things up. A curious thing happens.. fairly often, I get major job slowdown at the same time the rsync is ...