Rsync is an open source command line tool for Unix and Windows systems that provides fast incremental file transfer to copy files and synchronize directories locally or between remote hosts. It is widely used for mirroring and backup.

learn more… | top users | synonyms

0
votes
0answers
24 views

Rsync (-aR) Create a destination subdirectory with same permissions as top folder in source directory?

I'm using rsync to grab some modules within a web platform. I am able to pull things ok, the -aR relative flag works fine, and the structure is correctly replicated into a subfolder called "...
0
votes
1answer
23 views

Can rsync use a remote environment variable?

Say I want to use rsync to copy a remote folder to my local desktop: rsync -av remote:$REMOTEDATA $LOCALDATA But I want to access the $REMOTEDATA environment variable on the remote server, not the ...
6
votes
2answers
1k views

Rsync copying current directory with name

I want to copy current directory to my backup directory: I tried this command rsync -a . ~/backup/ but it just copies the current directory contents instead of creating new directory at the ...
1
vote
3answers
3k views

Is there an rsync alternative, that stores compressed and encrypted?

I'm looking for a suitable off-site backup / file synchronization solution. Both local client and remote server run linux. Storage space on the server is limited, bandwidth between client and server ...
0
votes
1answer
520 views

Files hidden after copying from NAS to NAS using rsync

I have 2 Western Digital NAS: a blue light and a 2TB MyBook latest edition. I enabled ssh on the MyBook and I can use rsync from a terminal to sync files between the 2 NAS. Instead of copying using a ...
0
votes
1answer
289 views

Error message using scp over ssh

I'm not sure what's going on but as of late I can't seem to get any files copied to local from my remote server. I tried rsync from local and get the following error message: mut@mylocalcomputer:~$ ...
0
votes
0answers
30 views

How to make unique dump results?

I am trying to check if my read-only partitions in FreeBSD remains unchanged. I do this using dump: dump -R -h 0 -0Laf /dumps/boot.dump /dev/ufs/boot and then I compute its SHA256. I used -R to be ...
-1
votes
1answer
44 views

Linux - Copy a folder including the subfolders, BUT don't copy any file that is over 5MB

I'm managing 2 linux servers and looking to copy the data from one to the other. I'm looking to just copy these files on one server first then zip it and then scp it over. I need to copy a 100GB ...
0
votes
0answers
91 views

sftp - skipping non-regular file error

I get skipping non-regular file /home/local/dir/dir2 while using: put -P /home/local/dir/dir2 /www/dir3 Sftp connects on non-default port, with ssh key and no-password, transfers normally ...
0
votes
1answer
33 views

cloning hard drive as backup strategy - ensure bootable

I've found a number of similar scenarios on this site and serverfault but still unclear about one thing. Basically I want to rsync from one 2TB drive to another 2TB drive and run this nightly. In ...
-1
votes
1answer
27 views

Ramdisk that persists old files

I've got a program that writes a file to disk, then another processes it. Usually this happens within a second or so, so the file is nearly temporary. To avoid disk IO, I write to /dev/shm. However, ...
0
votes
0answers
19 views

rsync-like encrypted synchronization solution

I'm looking for a open source (or at least trusted free) solution which would allow me to make file synchronization on 5 devices together (running different version of Windows & Linux). However, ...
1
vote
2answers
113 views

How can I quickly compare two directories skipping hard linked files that exist in both directories in linux

I have two directories that I would like to compare. The first directory contains an rsync backup of many thousands of folders and files. The second directory contains hard links to all of the files ...
2
votes
2answers
8k views

Permission problems with rsync

I wanna do daily ssh synchronization of some of my local machines files with my server. I want to do this via rsync, since it sounds the most promising tool for this task to me. Sadly I get the ...
0
votes
0answers
30 views

Can I check for multiple file extensions in one rsync filter rules file per line?

I have a working rsync script, which recursively traverses our directory structure and loads one .publish file per directory. Each file contains a list of files to be publish. Publish means to copy ...
6
votes
6answers
8k views

What is the fastest way to move a million images from one directory to another?

I have a million images totally 30gb of disk space that need to move from one local directory to another local directory. What will be the most efficient way? mv? cp? rsync? Something else? Tips?...
2
votes
2answers
2k views

Can I use Acronis to create and sync a mirror of my main drive?

Having had a complete disk failure the other day, and spending two days getting everything back to normal (read: i had backups of data, but re-installing apps and a million little configs were the ...
0
votes
1answer
34 views

External drive throwing ATA errors. What's the issue?

I have an SSD in my system and an external hard drive (attached via eSATA) as a backup medium. I use "rsync" to synchronize the internal drive to the external drive. My backup drive was once a Seagate ...
7
votes
2answers
446 views

Live rsync/directory monitor for Windows?

Right now, we have a central Linux server and several satellite Windows servers dispersed around the region. Every 15 minutes, the Linux server rsyncs files from the others (which are running the ...
0
votes
1answer
162 views

synology: rsync via ssh requires full path

I found the following behaviour on a Synology RS814+ > ssh backup01 rsync Permission denied, please try again. > ssh backup01 'which rsync' /usr/bin/rsync > ssh backup01 'echo $PATH' /usr/...
0
votes
1answer
14 views

How do you get rsync to load a list of (full rules, not limited like --include-from) filter rules from a file?

rsync has various options for reading various config from files so that you don't have to chain a bunch of individual --include or --exclude options together. All of these options (as far as I cantell)...
1
vote
0answers
12 views

Rsync check available

Hi i have the following mesh from raspberry pi which is with protocol 802.11s. In a pi5 with an ip 10.0.0.15 i have video capture who makes files in /home/pi/Desktop, And i need to make an arhive in ...
0
votes
1answer
27 views

Starting rsync command on every hour

im new in linux just want to asking you : How to add this command to start every hour on the computer : rsync -a --ignore-existing 130.68.124.219:/home/pi/Desktop/* /home/pi/test/ Thanks
0
votes
0answers
10 views

How to migrate symbolic links from two folders?

I made a backup of "zimbra ce" rsync but I just realized that you have not copied symbolic links. I have a clean installation zimbra in /opt/zimbra/ and backup in /opt/zimbra_old/, how I can copy all ...
1
vote
0answers
43 views

rsync/scp without root password and without allowing root ssh login

This is the scenario. We have a multitude of servers, currently we simply ssh in as root using our keyfile and then when we need to rsync we use the root user. All very easy. What we would like to ...
0
votes
2answers
101 views

rsync error: Bad file number (9)

I looked everywhere to find a solution...I keep on getting this error: rsync: change_dir "/cygdrive/C/Users/mloch/Desktop/sites/drupalsite1/" failed: Bad file number (9) rsync: mkdir "/cygdrive/C/...
0
votes
1answer
23 views

Is running rdiff-backup or rsnapshot save while source directory is written?

I'm wondering if it's safe to use rdiff-backup or rsnapshot on a source directory which is written to while backup is running. Will they backup a snapshot of source or will they eventually backup ...
19
votes
1answer
19k views

which is the rsync command to «smartly» merge two folders?

I have some folders that got duplicated by mistake and I have to merge them together. Let's say folder A contain file X and folder B contains file Y, I would like to get file X copied to folder B. But,...
0
votes
2answers
91 views

two-way sync between mac and unix

I would like to work on a directory on two different macs and have access to a unix server that I ssh into. I would like to just start a script at the end of the day that let's me upload all my new/...
-1
votes
1answer
644 views

What is Git Bash for Windows anyway?

I have happily been using git and git bash from https://git-scm.com/. There is a page with more information here: https://git-for-windows.github.io/. Yesterday I ran into a problem with rsync and ...
3
votes
0answers
305 views

Unable to rsync to another volume with Git Bash

I use git bash on a windows machine: version 2.7.2 (32-bit version) of Git for Windows built on 2016-02-23 available from https://git-scm.com. Within bash I can copy a directory from /c/ to /e/ (a ...
0
votes
2answers
60 views

Time Machine size explodes when copied to new drive

I'm trying to replace a 640GB USB2 drive which I use as my Time Machine backup device with a 1TB FireWire 400 drive without losing the current backup history. Given that the 640GB drive is nearly ...
1
vote
1answer
2k views

Using rsync to backup a Windows-hosted share over Samba in FreeBSD

I am trying to backup a Windows-hosted share, using rsync, from a FreeBSD8.2 box: bash$ sudo -i bash# uname -a FreeBSD zeus.companyname.gr 8.2-RELEASE ...amd64 bash# cat /root/.nsmbrc ... [...
0
votes
0answers
13 views

How to rsync files from machine A to machine C via machine B?

I need to rsync files from machine A which is not accessible from my machine (machine C) and it can only be accessed from machine B. How do I rsync files via another machine? files (machine A) ---...
0
votes
0answers
8 views

Is there a faster syncronizing between NAS bays

I'm owning a consumer home 2-Bay NAS (ARM CPU, 512 MB RAM) with both bays containing a 4 TB Harddisk, whereas the first HD is the working one, and the second HD (in the bay) is almost a duplicate of ...
0
votes
0answers
16 views

Link errors with symlinks

I've moved all the files of ./usr to an external drive /home/Linkados/usr (SD card 8Gb) using $rsync --progress -l -r /usr /home/Linkados/usr Then I created a symbolic link from my SD to my flash ...
1
vote
1answer
44 views

Why does rsync not create a hard link in my Backup Set?

I am trying to set up an rsync Backup from my Windows pc to my raspi. On the raspi I have an NTFS formatted usb stick. When I sync files to the target everything works fine, except that rsync will not ...
0
votes
0answers
30 views

Verify integrity of a file BEFORE rsync (preventing propagation of bit-rot)

I've got some ideas on how I could craft something together myself using Python and a utility like hashdeep to do this, but I'm willing to bet I'm not the first person that needed to solve this ...
1
vote
0answers
41 views

Send large files to server through low bandwidth connection

I'm trying to send large files (> 200Mo) to a remote server with a limited bandwidth using rsync. For now, it doesn't even start sending, only dry-runs succeed. My tests are working on other servers ...
0
votes
1answer
30 views

Why is my .bat file doing a infinit loop?

I've created a .bat file for running my cwRsync script. From CMD line, this works great: rsync -avz ./ {destination} --chmod=ugo=rwX --rsh "ssh -i id_rsync -p 9672" --recursive --delete Now, If ...
1
vote
0answers
58 views

I can't rsync to my phone

I have a strange issue, i can connect to my phone using ssh, I can navigate inside its storage but I can't rsync to it. I use Ubuntu as OS in PC, I have an Android (5.0) not rooted phone, with ...
0
votes
0answers
22 views

Can you have a SSH window on a Synology itself?

I was wondering if it's possible to SSH on a Synology itself, instead of on your local machine? I need to merge folders/copy files/ignore already done all data from an USB drive (connected to my ...
3
votes
1answer
42 views

rsync with just a single rule file, exclude some paths but include selected sub-paths therein, recursively

I want to exclude all the contents of a folder but some of its sub-folders, and I want to do it with just a single rule file without adding --exclude or --include command-line options. Is this ...
4
votes
1answer
77 views

How to make rsync actually continue from where it left off?

As a total newbie, after reading tons of questions in SO and the documentation repetitively several times, I came up with this solution: rsync -Pavuh --append-verify source destination Where --...
1
vote
1answer
142 views

rsync without remote having it

I'm wondering whether there's a possiblity of using rsync when the remote server doesn't have it installed (or at least not available to my user). The remote server is a shared host, and while I ...
1
vote
2answers
985 views

Caveats with gzip --rsyncable - no speedup

I am using (trying) gzip to compress an SQL file in an rsyncable way in order to transfer the backup with minimal delay. However it appears that this is not working, since the speedup is always 1.00. ...
4
votes
6answers
37k views

How to configure and use rsyncd?

I have a server configured to run rsync as demon /etc/rsyncd.conf file: log file = /var/log/rsyncd.log pid file = /var/run/rsyncd.pid lock file = /var/run/rsync.lock [documents] path = /home/user/...
3
votes
1answer
83 views

Will rsync preserve owner between servers if the username is equal but the userid is not

I have the following case: Server A has a user marco with userid 10001 Server B has a user marco with userid 10004 I'm copying a file test.txt, owned by marco, from server A to server B, with rsync -...
7
votes
6answers
15k views

Does rsync --inplace write to the entire file, or just to the parts that need to be updated? (for btrfs+rsync backups)

I was reading several guides how combine btrfs snapshots with rsync to make an efficient backup solution with history. However it all depends on if rsync --inplace modifies only those portions of ...
0
votes
0answers
53 views

rsync is changing my filenames

I use rsync to synchronize remote directory with my local one. My command is: rsync -e"ssh -i /path.to/id_rsa" -aP MyUsername@HostIP:/path/to/host/backup/ /path/to/local/backup --exclude '*.sql' ...