Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [rsync]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
10 views

rsync finding too many different files

I am trying to recursively list the files not present on the target present on both sides but differing in content between a local and a remote (SSH) directory using rsync: rsync -rvcn local-...
user avatar
  • 31
0 votes
0 answers
17 views

Backing up files to external drive with rsync

So my scenario is that I have been using rsync to backup files from an internal drive to an external USB drive. The backup is only about 50% done and I want to backup the remaining files to a second, ...
user avatar
  • 121
0 votes
1 answer
28 views

Powershell Cygwin copy data with Rsync remote as variable

I have a problem with Cygwine's rsync. With a Powershell script I am trying to transfer directories from a Novell server to a Windows server The path for the source is a variable that comes from a CSV ...
user avatar
0 votes
1 answer
23 views

SSH access to remote 'dynamic' directory

short version I'd like to synchronize a remote directory, whose name changes. Something like (not working!): rsync -a 'test@192.168.56.100:~/.zfs/snashots/$(ls -d Automatic-* | tail -1)/foo' ~/foo ...
user avatar
0 votes
0 answers
48 views

Kernel files (linux-image) to exclude on rsync full clone to different hardware

EDIT Now I'm able to boot the OS. As I made clean copy of the /etc directory just after buying the "new" dedicated server and installing Ubuntu server 20.04, i proceeded to: Boot the "...
user avatar
  • 478
0 votes
0 answers
45 views

Auto sync folders on linux server

My problem statement is how to auto sync /home/username/script folder to /var/www/html. So whenever files under script folder are updated then it will update them in destination folder, and also chown ...
user avatar
1 vote
2 answers
326 views

rsync error: error in rsync protocol data stream (code 12)

Guys this is an error I am getting when I try sending files to a server. I am not sure what went wrong. Can anyone help me fix this? Thanks in advance. $ rsync -avz ./ ssc:/webapp/ rsync: connection ...
user avatar
0 votes
0 answers
30 views

rsync check amount of bytes deleted

Is there a way to check how much data rsync would delete from the destination when --archive and --delete are set? I'm trying to set up rsync to abort the operation if it is adding or deleting more ...
user avatar
  • 101
0 votes
2 answers
38 views

rsync a directory with its own descendant

tl;dr: I want to rsync a directory to its own descendant, and then rsync the said descendant back to the original directory--including deletions and exclusions in both directions. Before you ask the ...
user avatar
0 votes
0 answers
17 views

Sync a directory between two shared hosting servers using rsync [duplicate]

I have two shared hosting servers and I need to sync a directory with subfiles/directories using rsync via SSH automatically. Mean: If server1 had changed server2 updates the changes. If server2 had ...
user avatar
0 votes
1 answer
494 views

Rsync: "chown failed: permission denied (13)"

I run a rsync task every midnight using the following command: rsync -ahzP --stats --update --delete-before --delete-excluded --exclude "*.log" --exclude temp /mnt/raid/ /mnt/backups > /...
user avatar
0 votes
0 answers
28 views

Rsync: Exclude files by maximum filename length (< 143 characters)

A cronjob copies files from a remote server (probably ext4) via rsync to a local encrypted partition (probably eCryptFS on top of ext4). Now rsync throws errors for filenames that are longer than 143, ...
user avatar
0 votes
1 answer
74 views

rsync optimization over --link-dest "referenceBackup"?

Context: I am successfully using rsync to create daily incremental and remote backups using the --link-dest "referenceBackup" flag, so that when creating the new backup, only a new reference ...
user avatar
  • 131
0 votes
2 answers
103 views

Rsync always failing at the same point

I made a script for my Proxmox host to copy its daily backups to another machine (running Windows Server 2019). The script mounts a CIFS share and runs this rsync command: rsync -aqzP --delete --...
user avatar
2 votes
2 answers
53 views

Moving files with rsync and custom port results in permission denied

I'm trying to move some files between servers with rsync and non-standard SSH port. I can login when I just use ssh and supply my password. When I try with rsync I get permission denied. I'm not sure ...
user avatar
  • 121
0 votes
1 answer
100 views

In rsync the "bwlimit" parameter is explicitly ignored, how to fix this

I have rsyncd version 3.1.2 listening on port 873 and I want to limit the bandwidth with which my files are downloaded by a client connecting to me. I added a bwlimit both in the config file: uid = ...
user avatar
  • 127
0 votes
0 answers
72 views

Problems after trying nohup rsync

I tried to run some rsync with nohup, which I couldnt get to run properly. I tried to delete the nohup.out file which it created but it seems everything in the directory I was working in is hanging ...
user avatar
  • 1
0 votes
0 answers
61 views

Why Would a Log File Get Cut Off When Emailed?

I am setting up some local backups of AWS EC2 instances. The backups are set to run overnight via Windows Server 2012 R2 Task Scheduler. The basic flow of each backup is that an rsync copies the ...
user avatar
2 votes
2 answers
75 views

rsync all pdfs except in certain directories?

I'm trying hard to understand the rsync filter system, and it's completely baffling me. I have the following "test" directory structure to try to make sense of it. With no filter options ...
user avatar
0 votes
1 answer
114 views

Rsync from MacOS to Synology NAS: "@ERROR: host is denied to login"

I'm using a Synology S420j (running DSM 6.2.4-25556) to backup files from my Mac (Monterey v12.1) using the following command: rsync -avz --backup rsync-user@nas.local::backups/ This has previously ...
user avatar
  • 131
0 votes
0 answers
16 views

Can I use rsync with --files-from and -r options?

I tried using the rsync --files-from and -r options together. It worked, but for me, working like this seems strange. My rsync command is: /usr/bin/rsync --port=$RSYNC_PORT -avz --progress --log-file $...
user avatar
0 votes
0 answers
191 views

Bad magic number in super-block....Rsync Issue

I am struggling to figure out if I setup this 4TB external drive wrong. Unfortunately, it now is like 95% full, so I don't want to start over. The issue started with not being able to run rsync ...
user avatar
1 vote
0 answers
44 views

Use local ssh_config settings on a remote server

Good day, friends! I've got a locally configured ~/ssh/config file with all the hosts set up as they should. I am using them successfully when doing my ssh from the local computer like ssh dev. But ...
user avatar
0 votes
0 answers
38 views

How to delete files in destination folder that are already present in source folder

I got two folders, a source S with files (and subfolders and so on): a.txt b.txt c.txt ... and a destination folder D with files: a.txt b.txt b1.txt c.txt c2.txt ... and I want to delete all files ...
user avatar
0 votes
1 answer
171 views

rsync : write failed - No space left on device (28) despite using --inplace

I am using a script to make a backup of a running Debian Stretch based Linux Distro (NextCloudPi) The method in the script that does the backup uses rsync. backup() { mntimg sync rsync -aDH --...
user avatar
0 votes
1 answer
191 views

rsync over multiplexed SSH connection and multiple jumphosts

I need to rsync a file from remote hosts to my local machine over multiple jumphosts. I'd like to use shared SSH connections so that I don't have to submit 2FA multiple times at some jumphosts. The ...
user avatar
0 votes
1 answer
75 views

NAS rsync - delete files from destination which are not on source and are 1 week old

I have hyperbackup running from source NAS to destination NAS with the below settings Backup type - Rsync Options - reserve backup file at destination With this i have a backup method that results in ...
user avatar
1 vote
1 answer
67 views

Downgrade or compile rsync to fix bug

rsync: [generator] failed to set permissions : Operation not supported (95) I'm running ubuntu 21.10 and facing the same problem as the above link, but could not follow the solution steps, for e.g. ...
user avatar
  • 21
1 vote
1 answer
58 views

rsync -p. why would you want to preserve owner, permissions

basically the title. I'm lacking unix basics but on windows if I backup with robocopy I wouldn't want to preserve ownership bc then I would have to take ownership of it again anyway when replaying the ...
user avatar
  • 11
0 votes
1 answer
150 views

Rsync very slow and slows system performance after update to RHEL 8

I updated my file server VM (VMware) from CentOS 7 to RHEL 8. I doubled the CPU's and memory on the new system, but for some reason rsync's seem to bog the system down considerably. To the point where ...
user avatar
0 votes
1 answer
114 views

rsync: is there an option to make rsync stop at first error so i can see what's happening?

CONTEXT : rsync with very large number of files to sync WHAT HAPPENS : rsync encounters errors, but just continues..... WHAT I DO : rsync -Pav path1 path2 ISSUE : I'm booted in a recovery mode and the ...
user avatar
  • 129
0 votes
1 answer
149 views

How do we find where the rsync is scheduled and how can we reschedule it?

How do we find where the rsync is scheduled? I have a rsync that's done in server A to server B, and I need to find in server A where rsync is called and where and how it's scheduled. Is there a file ...
user avatar
  • 17
0 votes
1 answer
79 views

Fixing Permission Issue (Operation not permitted (1)) when using github action

I have an aws ec2 instance and I am trying to setup github action. My action is not able to sync. The error I get is Warning: Permanently added 'XXXXXXXXXX.compute.amazonaws.com,XX.X.XX.XX' (ECDSA) to ...
user avatar
  • 101
0 votes
0 answers
37 views

High CPU from 1 process that's MYSQLD, but no abnormal queries while doing SHOW FULL PROCESSLIST

I have an issue where 2 processes take 99% of the CPU, but that leaves me the mysqld process that takes 600% of the CPU and a set of php-fpm processes that takes no more than 25% of the CPU according ...
user avatar
0 votes
0 answers
27 views

Is there a way to find out what files are being moved by rsync and when and where it's scheduled?

Is there a way to find out what files are being moved by rsync and when and where it's scheduled? I was told by the senior administrator that there was a rsync process that allowed us to back the data ...
user avatar
1 vote
0 answers
39 views

rsync does not respect exclude parameter copying from remote server

I am using rsync like below to copy the whole filesystem of the remote server with the hostname "beton" to a local directory. I would like to exclude virtual directories like proc, but even ...
user avatar
0 votes
1 answer
50 views

Why is rsync only hard linking some unchanged files?

I'm using rsync for incremental backups, using the --link-dest option to point to the previous backup so that unchanged files are hard linked to there. This is working, but not for all files. For ...
user avatar
  • 143
0 votes
0 answers
97 views

Strange behaviour of rsync between debian an truenas

I want to use rsync to backup data from webserver to Truenas. The webserver runs Debian 11 and Truenas is at 12.0-U5 The backup is saved on the webserver in an encrypted format using restic. Since it'...
user avatar
0 votes
1 answer
236 views

Unexpected remote arg when using link-dest in rsync

I have a backup script on my WSL Ubuntu that I use manually to backup my linux systems to a USB drive (NTFS volume mounted on WSL). I'm running into an issue with --link-dest that I haven't had before ...
user avatar
1 vote
1 answer
22 views

Restore File Owner from Backup, but not Content

By mistake we did a chown www-data:www-data / -R on a production server. We do have a backup, but as only the permissions are wrong we want to restore only the permissions from the backup, not the ...
user avatar
  • 456
0 votes
0 answers
127 views

getting error while trying ro rsync contents that live inside /etc directory

I am making a cron job on my server node that uses haproxy base concated cert file from letsencrypt. however when I am at home I have same dns pointing to the home server which is actually hosting the ...
user avatar
0 votes
0 answers
40 views

Server becomes inaccesible/hangs after rsync starts copying files

I have an ubuntu server (backup server) in a remote location. It has some bash scripts that create backups. The server's been working for years. Recently, it started "hanging", meaning that ...
user avatar
0 votes
0 answers
61 views

How to make Rsync only allow download but not upload

I know that i can add in Rsync's config file read only = no But when I use the synchronization command on the client, rsync tells me ERROR: module is read only If I change the value of read only to “...
user avatar
0 votes
1 answer
370 views

Incremental backup qcow2 image with rsync

I use rsync to backup the qcow2 disks of my virtual machines. However, I would like to be able to get an incremental backup so that I don't have to copy the entire disk every time. for now I use rsync ...
user avatar
0 votes
1 answer
399 views

Rsync : Preserve date after copying

I have an issue with files attributes since I changed my company's file system from an old ubuntu 12 to a Synology NAS. I initially mounted NFS shares on my old file system, then with cp I copied ...
user avatar
  • 1
0 votes
0 answers
31 views

Permission denied with reverse tunnel rsync

I want Host B to set up a ssh tunnel to Host A so it can rsync with Host C. Only Host B has keys. All three machines use the same key. I've tried this: ssh -i ~/.ssh/key -A -R localhost:50000:Host_A:...
user avatar
  • 412
0 votes
2 answers
455 views

Ansible synchronize module permissions failing

0 I wish to synchronize letsencrypt credentials from host S to Host D using an ansible task running on host H. My current task looks like this: - name: Synchronize local letsencrypt directory ...
user avatar
  • 1
1 vote
0 answers
162 views

Can't SSH into my server from my Mac Terminal and rsync over SSH is suddenly broken too

all of a sudden I can't login to my server from my Mac Terminal. On my Linux machine normal ssh login still works, except rsync over ssh also gets stuck. This is what happenes when I try to connect ...
user avatar
  • 11
0 votes
0 answers
311 views

rsync-bpc: connection unexpectedly closed after 40GB have been received

After starting a backup it goes for some time before failing, which is what I'm finding hard to understand. I created a fresh test backup that worked flawlessly, it was just a couple of files, but for ...
user avatar
1 vote
1 answer
55 views

rsync: Remember copied files, even if they are deleted at the destination

I want to run an rsync job that copies data from A to B. The data at the destination will be deleted after processing. However, the processed data should no longer be copied. Is there a way that rsync ...
user avatar
  • 11

1
2 3 4 5
31