Questions tagged [rsync]

rsync is a tool to efficiently copy directory hierarchies, locally or remotely, with powerful filters to decide what gets copied.

Filter by
Sorted by
Tagged with
0
votes
1answer
26 views

multiple rsync commands without prompting the password multiple times

I am writing a bash script to rsync multiple files from a remote host into my personal computer. What I wrote so far works, one rsync command after the other (three in total), though I have to input ...
0
votes
0answers
10 views

rsync daemon stopped working a few days ago - some update has broken it

I have an rsync daemon on a machine running Ubuntu 18.04 which I use for daily backups. Daily backups stopped working on 22nd January with the following error:- @ERROR: access denied to esprimo ...
0
votes
0answers
17 views

How to transfer files to an encrypted container from Mac to Ubuntu?

I have run a backup from my Mac to Ubuntu machine with rsync. rsync -av —delete ~/ me@ubuntu:/mnt/Backup/date However, I would like to make at the Backup folder a compressed and encrypted file. The ...
0
votes
0answers
21 views

rsync from remote generates error `Name or service not known`

Context: I've configured my ~/.ssh/config so I can use a shorthand for sshing into the remote. Therefore, this works;- ssh somename But.. If I use the same name when trying to rsync from the remote ...
0
votes
3answers
42 views

rsync sync specific folders (by pattern) with file filters

I have the following structure: /src/2016/aaa1.pdf /src/2016/aaa2.pdf /src/2016/aaabbb1.pdf - needed /src/2016/aaabbb2.pdf - needed /src/2017/aaa1.pdf /src/2017/aaa2.pdf /src/2017/aaabbb1.pdf - ...
0
votes
1answer
16 views

rsync not recognizing synced drive as synced after OS update [closed]

I'm in the process of rebuilding a fileserver. I've added new hardware and an update from Ubuntu 14.04 to 18.04. All my drives are recognized and I am able to mount my mdadm RAID fine. I have a ...
1
vote
1answer
16 views

rsync include only png images under a subfolder

I am trying to synchronize a folder over ssh using rsync. In particular, I only want to get the png fils in the remote folder, as all the folder may occupy several gigas. The folder structure is the ...
2
votes
1answer
33 views

Rsync files directories with different names

I am trying to rsync files from a directory incoming to a directory called outgoing, i.e., /testcopy/folder1/incoming/test1.txt to /testdest/folder1/outgoing/ Directory source: /testcopy/folder1/...
0
votes
0answers
26 views

rsync exclude folder but include some files in the folder

I want to backup my Windows home directory using cygwin: rsync.exe -vrptlH --delete --exclude=AppData "/cygdrive/C/Users/user1/" "/cygdrive/D/backup/" As you can see I excluded the AppData directory....
0
votes
2answers
32 views

Rsync realtime sync between Live environment and DR

Actually I mounted two sharefolders on my Linux system. I use that to sync /mnt/Live and /mnt/DR. That is files on /mnt/Live and /mnt/DR should be the same. To make that happen, i made one rsync ...
0
votes
2answers
56 views

Mount a block device as a regular file

Preamble Suppose I have an encrypted partition of 1TB on machine A containing the home directories of a dozen users, let's call this partition sda2. I want to backup that partition on a remote ...
2
votes
1answer
127 views

Connection to xx.xx.xx.xx closed by remote host during rsync backup

I have 2 web servers. Let's call them local and remote just for simplicity. Local: I've only ftp and cron access, Remote: ssh/ftp I wrote a simple backup script, which tars the files and then sends ...
-1
votes
1answer
33 views

rsync completed in both directions, but size of directories is different. How it's possible?

I want to sync 2 directories (/src & /dst) to mirror all the files in both of them. Here is a steps: sudo rsync -vaP --stats /src /dst -> completed without errors sudo rsync -vaP --stats /dst /...
1
vote
1answer
42 views

Copying large files to a USB stick

When I mount a USB stick and use rsync to copy a relatively large file onto it (cp has the same results, but progress bars are nice), it succeeds under 10 seconds. Then umounting hangs for a few ...
-1
votes
0answers
38 views

Understading rsync verbose output

I'm trying to debug slowness in rsync execution on a file server. I've set rsync to be verbose rsync -rtvvvv. I see lines with keys which I would like to know what each one of them means. I omitted ...
0
votes
0answers
24 views

Can I perform incremental backups with Syncthing?

I have found a page which describes how to go about doing incremental backups using rysnc. To me incremental backups are good not only because they save space and time but also because you can ...
0
votes
0answers
16 views

Failed to sync file to remote server using lsyncd: cannot rename file name

I use lsyncd to synchronize the files on the local server to the remote server (mounted Azure disk). When replacing the files, sometimes the synchronization is successful and sometimes the ...
-1
votes
0answers
31 views

Sync tool based on `locate`?

I'm just exploring rsync and it seems powerful and versatile. However, it appears to do what find does, i.e. traverse its way through a directory structure in the source and destination, making ...
0
votes
1answer
18 views

rsync --size-only -avbr fails to create backup file

I've recently discovered rsync and started to use it. I want to compare files based on filename & filesize only. If both match, then skip, if different size, then keep dest version (renamed) and ...
0
votes
1answer
29 views

rsync permissions only for owned files

I have a directory on my server to which multiple users copy their data using rsync. All users use the options -a -h -v. All users are in the same group used for this directory. All users mount the ...
2
votes
1answer
66 views

Linux, safest way to move a file system

I have to move my user home to another device, it occupies several gigabytes, I would like to avoid losing something, at the moment I think I will use rsync rsync --progress -avh --remove-source-files ...
0
votes
1answer
18 views

Can't rsync to www-data owned directory

I have a ubuntu 18.04 server running on GCP (nginx+php7). I've setup a directory /var/www/mysite.com which is drwxr-xr-x www-data:www-data. public_html/ is also drwxr-xr-x www-data:www-data. I'm ...
0
votes
0answers
41 views

rsync command not found

I am a total novice that is attempting to use rsync to back up my photos stored on my Macbook Pro. After following the instructions from some excellent Youtube videos, I finally had it up and ...
-1
votes
1answer
30 views

What flags to use with rsync to make it delete a file /dest/foo and replace it with the directory /src/foo?

What flags should I use to make rsync delete a file /dest/foo and replace it with the directory /src/foo? Also, the reverse, replace directory /dest/foo with file /src/foo?
0
votes
1answer
84 views

Replacing scp with rsync

For a long time I've been wishing to replace scp in favor of rsync due to all the advantages and extra features of the latter (better performance, resuming interrupted downloads, displaying progress ...
0
votes
1answer
28 views

rsync with --bwlimit option over tar -b and dd combination

I am taking NFS backup using following way. tar -b 1024 -cf - . | /bin/gzip -c | /bin/dd bs=10M oflag=direct,sync of=/nfs But I read it somewhere that to throttle the rate of I/O reading the data to ...
0
votes
0answers
12 views

Getting error on ubuntu 18.04 “/usr/lib/postgresql/9.4/bin/repmgr: unrecognized option '--rsync-only'”

I am running the following command for syncing of Postgres DB between node 1 and node 2. su postgres -c 'repmgr -f /etc/repmgr/repmgr.conf --force --rsync-only -h node2 -d repmgr -U repmgr --verbose ...
0
votes
2answers
97 views

Rsync operation not permitted

I have backed up my data previously using rsync -avz on my late Linux Mint installation. Now when I try to backup my data with the same command on Windows 10 Ubuntu subsystem, the rsync just ignores ...
0
votes
0answers
41 views

rsync not appending to its log file

I'm using rsync --log-file=... on my QNAP NAS and it is not appending to the log file when running via cron. Running the same command from the command line does append. This command appends from the ...
0
votes
0answers
22 views

cant redirect rsync error to stdout

Hi everyone the following works fine rsync -r -e "ssh -i /key/file.ssh/" name@server.org:/remote/place /local/place/ but the following rsync -r -e "ssh -i /key/file.ssh/" name@server.org:/remote/...
1
vote
0answers
18 views

Lsyncd 2.2.2 ownership and permission issue (rsync, centos 7)

I'm having an issue where files are been copied to the remote server except the owner/group of replicated files on the target server is always '1002'. The permissions of the source are respected and ...
-3
votes
2answers
59 views

Why does transfer files to another computer by `sudo rsync` require the destination computer's root's password? [duplicate]

I am trying to transfer a directory to another computer $ rsync -a --delete --stats -h wget 'olive:/tmp' Number of files: 5 (reg: 4, dir: 1) Number of created files: 5 (reg: 4, dir: 1) Number of ...
0
votes
0answers
43 views

Transferring .tar files on Linux

I need to transfer a .tar folder to a remote server and because it's very large I can't unpack it on my computer and then transfer it. I am using "rsync" but it doesn't work: rsync -av folder/...
1
vote
1answer
36 views

Rsync does not preserve timestamp if ownership change fails

I'm trying to sync data to a NFS share while preserving timestamps. Original file: -rw-rw-r-- 1 simon simon 1554756 Apr 18 2017 IMG_0578-Bearbeitet.jpg Used rsync options are -avh --progress. ...
1
vote
1answer
41 views

rsync backup stragegy how to avoid syncing corrupted files?

If I use rsync for an automated backup, how can I avoid it syncing files that have been corrupted at the source? For example: I have /source/*.* and it's periodically automatically synced to /...
1
vote
1answer
25 views

Execute a command before rsync --delete-after takes place

What I want to do exactly is to sync the files , execute a command and wait for it to finish , then use the --delete-after option
1
vote
0answers
13 views

rsnapshot running for long time after deleting a large number of file

We have been running a nightly backup on our Linux server for many years without issue. However, since deleting a large number of files (8gb worth) from one of the folders being backed up the backup ...
0
votes
1answer
12 views

Timing of rsync exit codes on receiver and sender side

I would like to remotely perform an operation upon a file after an rsync transfer like so: rsync [options] file dest && ssh dest some_program file This requires the file not to be opened ...
0
votes
0answers
34 views

Recursively Find and Copy All PDF files from HDD to a Local Folder

I'm trying to copy all PDF files in an HDD to my computer, without losing any PDF files with different content but the same name, i.e. if I have 3 folders folder1, folder2 and folder3, each with a ...
1
vote
2answers
75 views

cpulimit is not actually limiting CPU usage

I'm calling cpulimit from cron: 00 16 * * * /usr/bin/cpulimit --limit 20 /bin/sh /media/storage/sqlbackup/backups.sh When the job kicks off, the CPU spikes and alerts as it always has, with no ...
0
votes
2answers
62 views

Rsync include folder content but exclude parent folder

I have scoured the web to no avail searching for an answer... I'm trying to achieve this result at destination Media_Files Web Print My source files are Media_Files Assets ...
0
votes
1answer
19 views

Updating without copying

Given a source and destination directory, how can I update files that have newer versions in the source, but not copy any files that do not already exist in the destination (in any version)? That is, ...
0
votes
0answers
24 views

make rsync delete files in use on mac

I have setup rsync to sync one folder with another. It manages to copy all the files and folders into the destination but when trying to sync again it can't delete files that have been deleted on ...
0
votes
1answer
58 views

Timeshift weekly cron emails

I recently installed timeshift and set it to backup weekly. However, when I looked in /etc/cron.d, I only found timeshift-hourly which ran: 0 * * * * root timeshift --check --scripted which appears ...
6
votes
1answer
65 views

Is the rsync block compression dictionary reset for each file?

Does rsync -z compress blocks of each file without regard to the previous file, or is the compression dictionary reset for each file so that it is handled independently? As an example, consider a ...
0
votes
2answers
32 views

Deleting files from a list on the server without actually syncing them?

I have a situation, where I want to rsync a few scripts to the server: rsync -arh --stats --files-from="${LIST}" "${SRC}/" "${HOST}":"${DST}/" In the next step I would ssh into the server and call ...
1
vote
3answers
102 views

Rsync over ssh copies all files every time

We are using rsync to backup one external drive to another external drive. When the two drives are connected to our Ubuntu machine, it works perfectly: rsync -avzh --exclude='_quarantine' /media/...
3
votes
3answers
226 views

Rsync: Are there any way to exclude multiples files and directory shortly?

Are there any way to exclude multiples files and directory shortly with rsync? Below is my code: rsync -avzh . blabla@blabla:~/ --exclude=__pycache__ --exclude=checkpoints --exclude=logs --exclude=....
1
vote
0answers
19 views

using rsync to move merge files into new directory fails to show progress or create backups

I have a bunch of old backups, each of which is a directory containing incremental changes from the previous backup. There are arbitrarily nested directories and files in each directory. I need to ...
0
votes
1answer
26 views

Copy only few folders with complete structure with rsync

I'm trying to copy a list of folders with its complete data structure to target. I have 20 folders in source, but I want to copy just 7 from them with their files and sub-folders. I've tried to use ...