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
0answers
16 views

rsync - ssh over two intermediate servers

is it possible to modify an rsync call like: rsync -avLuR -e "ssh -A user@ip1 ssh" $srcLoc1 user@ip3:$destLoc1 to be something like: rsync -avLuR -e "ssh -A user@ip1 ssh -A user@ip2 ...
1
vote
1answer
25 views

Rsync does not properli link incremental backups

I am using Rsync to do the incremental backups of the data, but for some reason after 3-4 proper incremental backups , rsync performs Full backup, occupying twice the space, then I quickly run out of ...
0
votes
3answers
43 views

rsync on file unmodifed since 2 hours only?

I have an app on a remote server that produces new binary files roughly every 2 hours. Every 6 minutes, if there is new data, files are updated. They are closed after 19 appending, which means that if ...
0
votes
1answer
17 views

Problems getting Rsnapshot to work, even just for a local backup

my goal is to backup a remote server. However, I first want to get just a local backup working, running on Ubuntu 20. For this, my /etc/rsnapshot.conf file is the following: config_version 1.2 ...
0
votes
0answers
22 views

How to sync edits for a file across multiple linux machines?

I have 3 Linux machines which act as compilers to execute scripts in a parallel fashion. Now to make the execution better with less restarts of resources (where needed), I am developing a framework ...
0
votes
0answers
19 views

Copy from remote centos to local Mac using Rsync

I have a CentOS 7 server and I want to copy the files and the recursive files and folders that are in /var/www/vhosts/mywebsite/httpdocs to my local Mac drive to ~/Downloads/Web/ using rsync. I have ...
0
votes
0answers
15 views

rsync expected behavior when moving source files to subdirectory

Assuming /source is backed up to /backup, what does rsync do when files get moved from /source into subdirectories of /source? Does /backup end up with duplicate copies in every subdirectory the file ...
0
votes
1answer
14 views

Which protocol needs rsync to enable checksum calculation through source and destination server?

I execute rsync with the --checksum option on the destination server as follows: rsync -av --bwlimit=800000 --delete --checksum /mnt/disks/SMB_SRC/ /mnt/user/dst But as I mounted the source server as ...
0
votes
1answer
25 views

rsync over a serial connection

I need to effectively rsync two directories (running on two different machines) over a serial connection. I'll have to handle actual file transfer over a custom protocol. What I'm really after is ...
-1
votes
1answer
39 views

rsync only particular file types in subdirectories with a fixed maximum depth

I want to sync all *.sh files in exactly one sub directory. I tried this cmd but all files in a directory are synced instead of only particular file types. rsync -vr -n --include="*.sh" --...
0
votes
0answers
30 views

rsync links to point on a new destination

I need to copy directory structure from one place to another. I need to copy only folders and symlinks. I use command find $SOURCE_PATH/ \( -type l -o -type d \) -printf "%P\0" | rsync --...
1
vote
0answers
26 views

Rsync running every month can't stop it

I have never used rsync for backup before. I'm not a advanced user by any means, but enjoying Linux. I was following instructions, from a website (have now lost the url) and I managed to set up rsync ...
0
votes
2answers
57 views

rsync copies the current directory when I don't pass an option to my script

Below is a script on Ubuntu 18.04 used to copy files from one directory to another. All works fine except the files from the current directory (/media/rmerriam/Backup/rsync_backup) are copied to the ...
1
vote
0answers
8 views

How to sync specific name directory wherever in the path it resides with rsync?

If I want to sync txt files in every Test 3 directory only, how would I do that if the directory structure is: /mnt/this/Test 3/dir/file1.txt /mnt/Test 3/dir/file01.txt /mnt/Test/Test 3/file2.txt /mnt/...
0
votes
0answers
17 views

rsync copy with partial recovery, but don't copy if it already exists

I am trying to use rsync to sync directories between two servers, but if the file exists, it should not attempt to move it again. I wanted to be able to recover the operation if I cancel command or ...
0
votes
1answer
39 views

rsync from Mac 10.13 to Pop_OS 20.04 creates hidden files from Mac xattr

I am using rsync between Mac 10.13 (APFS) and Pop_OS (ext4) with a flash drive as transfer medium (FAT). My command is rsync -av --exclude-from='exclude-files.txt' source-dir destination-dir I am ...
0
votes
1answer
38 views

rsync with the “--progress” option prints extra garbage information

when using rsync with the --progress option, in addition to printing progress, it also prints strange codes (xfr#1, to-chk=2/4), ie: rsync -a --progress --delete src dst 1,206 100% 0.00kB/s ...
3
votes
2answers
114 views

rsync --delete is not working

OS is Debian 10, rsync version 3.1.3. I'm running rsync like this: time rsync -ar --delete --info=progress2 --files-from=filelist.txt . /path/to/dest This works to copy the files over, but doesn't ...
0
votes
1answer
66 views

How to backup to external btrfs partition with snapshots if my system is on ext4?

As I started to use Timeshift on my Linux Mint I saw that it was possible to backup on btrfs, however, with some requirements: that the linux system had to be installed on btrfs as well (and I think ...
0
votes
1answer
35 views

Problem with rsync - No incremental

Got a strange problem. We have a directory with hundreds of huge log files, and I have to transfer them to a new server. First I did : rsync -zavh /foo/bar/logs 10.10.10.10:/ Worked well, took an ...
0
votes
2answers
19 views

Get rsync to list ignored files in verbose output

Is it possible to get rsync to list all the files ignored/excluded in transfer, in addition to the files transferred?
1
vote
1answer
45 views

Rsync include folders and links but exclude files

I need to copy directory structure from one place to another. I need to copy only folders and exclude files. Main problem is that i have link-folders ! when I type rsync -avz -H /tmp/test/ /tmp/copy/...
0
votes
1answer
18 views

rsync --compare-dest, not expedted result

I have tried to get rsync --compare-dest to work as I expect, but I need some assistance. My goal is to create offline repo deltas for CentOS. I have one server connected to Internet where I store my ...
0
votes
1answer
43 views

efficiently rsync multiple clients (which are behind firewalls) to a server

Like many teams, we now have people working from home. These remote clients are behind firewalls (which we do not control), and they do not have static IP addresses. In short, we cannot directly SSH ...
0
votes
1answer
33 views

rsync not deleting folders

I back up my wifes' stuff to a raspberry pi. She has sorted out some stuff, moving files and folders, but rsync isnt reproducing the changes. Can anyone tell me why ? I mount the (windows) share sudo ...
0
votes
1answer
22 views

Does rsync write data unrelated to the backup?

I'm verifying my rsync backup's integrity by running the process again with the --dry-run (-n) option added. According to O'Reilly all different files would appear in the terminal output, but what ...
0
votes
0answers
27 views

Improve or replacement for rsync

I have a network with 80 RHEL 6.5 server. i have a file server in this network and run rsync deamon on it. clients checks file server every 15 minute for updates and if file server files updated or ...
0
votes
1answer
28 views

rsync chmod and chown operation not permitted

I am trying to backup my filesystem to my SSD so I can boot from SSD. The issue I am having is RSYNC is giving me errors. I am running sudo rsync -aAXv / --exclude=/media/* --exclude=/mnt/* /mnt/...
1
vote
0answers
19 views

Diskless root filesystem starts to break when copied to a new location

I am pxe booting using nfs to get a diskless cluster. When doing testing I wanted to make a copy of the directory used by the nodes to mount the linux root filesystem. But after copying the file over ...
0
votes
0answers
46 views

rsync files that are only accessible if I switch user with sudo su

I have a local user "w10_user" on my windows 10 (local) computer. There is remote linux host "server". On server, where I can't change any configuration I have users "...
0
votes
1answer
33 views

rsync --itemize-changes lists some xattr differences, but getfattr shows no difference

On my Arch Linux machine, I want to verify btrfs backups of snapshots using rsync. The following rsync command is used to check for changes: sudo rsync -n --itemize-changes --checksum -a --delete --...
0
votes
0answers
32 views

debian rsync much slower from cron than from command line

If I run this command from cron rsync -aAXv / --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/var/lib/plexmediaserver/*","/run/*","/...
2
votes
1answer
54 views

Is it possible to use rsync to restore root from a directory in root?

My intended order of events is as follows: Backup most of root sudo rsync -aAXv --delete --exclude={/dev/*,/proc/*,/sys/*,/mnt/*,/media/*} / /BACKUP Reverse the process sudo rsync -aAXv --delete --...
1
vote
0answers
27 views

Rsync, remove source files, symlink

Need help with this one. I am trying to move some folders from source to destination with error handling (because mv failed to close files looking at rsync now) so far this is what I have. But it’s ...
0
votes
0answers
13 views

rsync include everything but subfolder with dir-merge

So I've been googling around for the past couple hours reading man rsync and quite a few tutorials and questions on the interactions between exclude and include rules. What I want to achieve is to ...
0
votes
2answers
70 views

Optimal rsync options for moving home directory

I am on an Ubuntu 16.04 LTS machine and in preparation for an upgrade to 18.04 LTS I want to move all /home directories (in fact there is only /home/juergen) to a separate, now free partition that I ...
0
votes
0answers
21 views

Rsync Files get Updated over & over

Using rsync to update a downloads dir to a backup volume. A few random (?) files in the source dir get updated every time it runs, despite not having been changed. What could cause this? Command ...
0
votes
0answers
77 views

rsync exclude not working

This might be related to this (though I'm not excluding folders, only their content), but I'm not sure I fully understand the provided answer. Following Arch Wiki full system backup with rsync, I used ...
0
votes
1answer
71 views

Exclude existing files by name when copying with rsync

I'm executing the following two rsync commands. In the first command, I'm copying files from source to destination and in the second command I'm then checking the files and delete the files in source. ...
1
vote
0answers
16 views

Lsyncd missing updates to small files

We're experimenting with lsyncd to keep data from server 1 to server 2 in sync. All seemed to be working fine but we discovered that differences in files start to appear. We are dealing with processes ...
1
vote
1answer
22 views

why does rsync run through all the files but fail to copy them?

I can't fathom why rsync isn't working... Here's my directory and contents... $ pwd /home/alec/.dotfiles $ ls '~' neomutt tmux vit gitconfig mbsyncrc myclirc ...
0
votes
1answer
23 views

How to rsync a large directory tree, but only leaf directories that match a regex?

This is easier to explain with an example. Imagine I have a directory structure as follows: pics/cats/png/01.png pics/cats/png/02.png pics/cats/jpg/01.jpg pics/cats/jpg/02.jpg pics/dogs/png/01.png ...
0
votes
1answer
16 views

How can lsof -p $pid be stalling when ls /proc/$pid/fd is not?

I have a situation where I observe that BackupPC stalls for a particular host. This host runs Debian 10 (and has e.g. Docker installed). During that situation, two rsync-related processes are running ...
0
votes
0answers
19 views

extracting files using rsync

I am working on pf-sense and its integrated with suricata, when alerts are generated it stores the file into directory containing multiple sub-directories. I want to extract all the files from these ...
2
votes
0answers
45 views

sftp get - but exclude node_modules

So my windows computer crashed - and I had to move OS so i moved all my nodejs apps to my web server. Now that I am running ubuntu 20.4 I am needing to get all these folders and copy them to my ...
1
vote
1answer
72 views

Rsync source list to destination list

Edit: to give more insight into what I'm trying to achieve, I'll give the example below (there was poor folder structure on part of the team and we aim to fix it): Source: /ShopA/Finances/Costs/...
0
votes
1answer
37 views

RSYNC from Remote Host via SSH Breaks LAMP

I have three questions from the use of one rsync command, below: sudo rsync -avz -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" --progress <user>@<ip.address&...
0
votes
0answers
35 views

How to find out what's taking the longest time during a backup with rsync?

I'd like to find out which parts of a frequent backup (with only few changes in between) take the longest to reduce the time needed for it and reduce the I/O stream. I'm using backintime (BiT) for the ...
0
votes
1answer
43 views

Is it possible to rsync a live virtual machine image file?

I have several virtual machines on KVM. They are mostly stateless, and shutting them down would be impactful and is not ideal. Is it possible to: rsync /var/lib/libvirt/images/host1.qcow2 user@offsite:...
0
votes
2answers
51 views

Rsync exclude directory using text file not working

I have the following rsync command to create backup and I want to exclude cache folder from the website: rsync -aAXv --delete --exclude-from='/usr/local/maxicron/rsync/conf/exclude.txt' /home/admin/...

1
2 3 4 5
32