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
1answer
18 views

Simulate rsync - find how much data needs to be transferred without modifying files

I'm looking to replicate some of my backups across storage and am trying to investigate how to do that with minimal I/O and network traffic. This has some bearing on what hardware I need to go out and ...
0
votes
0answers
15 views

rsync + failed on error with Bad file descriptor

usually we not have this issue so its very rare! but today we got the following error when we are using rsync to copy files . when files - pkg_gh are with 1-3G size the error is like this Warning: ...
0
votes
1answer
24 views

rsync doesn't always sync changes made for web server

I use rsync to update my website, but lately it has been giving me some issues. I use the command rsync -uvrP --delete-after COMPUTER/ WEB-SERVER/ but it doesn't always update after I've changed a ...
0
votes
0answers
31 views

Shutdown NAS Synology after backup

We have 2 NAS Synology Disk Station 1618+ with DS1618+ OS' version. The first one (NAS1) receives backups from multiple servers and the second one (NAS2) is supposed to be the backup of that NAS. So, ...
-4
votes
0answers
20 views

Setup a Linux Backup Server with Retention Policy [closed]

I want to set up a DIY Linux backup server with following requirements: secure file transfer over the Internet straight-forward backup and restore process for new clients with minimal software ...
0
votes
1answer
19 views

Rsync copies all files with executable permission

I ran the following command to back up my home-directory: $ rsync -ahv \ --info=progress2 \ --partial \ --exclude=.cache/ \ --exclude=.miniconda3/ \ --exclude=....
0
votes
0answers
34 views

rsync: [generator] failed to set permissions : Operation not supported (95)

I want to virtualize correctly Android 10 on top of my Jetson nano (arm64) using qemu and kvm on ubuntu 18.04. This is the tutorial that I'm following : https://github.com/antmicro/kvm-aosp-jetson-...
1
vote
1answer
68 views

What Happens When You Write Data To Raid While It Is Scrubbing?

I have a RAID 5 setup with almost 15TB of data capacity. In the past I have let it go unchecked for too long, and found that multiple drives had SMART errors and I want to prevent bad blocks. I am ...
1
vote
0answers
547 views

do I need to turn on `use chroot = yes` when use rsync daemon over ssh?

from man rsync section USING RSYNC-DAEMON FEATURES VIA A REMOTE-SHELL CONNECTION. We can use rsync -e ssh user@server::module to let the remote server start a single use rsync daemon which read config ...
1
vote
0answers
24 views

rsync - restore from multiple (identical) sources to one target

Im wonder if there is way to rsync (or any other tool) from multiple identical sources to one target. My thought was, one rsync process reads the filelist from the beginning, the other one from the ...
1
vote
0answers
40 views

provide reason when shell denies rsync or sftp access, instead of: protocol version mismatch, protocol incompatibility, Received message too long

When someone connects to rsync, and it's supposed to stop them, and (wrongly) echos an error message, I have output from rsync like: protocol version mismatch -- is your shell clean? or rsync error: ...
1
vote
1answer
51 views

How to rsync only specific directories and all their subdirectories and files?

Let's say I have something like /path/to/dir1/[...] /and/path/to/dir2/[...] on / And I'd only like to rsync those two and everything they contain to /backup/ So after rsync I have a copy of them in ...
1
vote
1answer
63 views

win32 openssh default shell wsl.exe command arguments

Environment: Windows 10.0.21327 wsl2, ubuntu 20 LTS win32-openssh Windows Openssh Default shell changed to: Computer\HKEY_LOCAL_MACHINE\SOFTWARE\OpenSSH\DefaultShell C:\WINDOWS\System32\wsl.exe ...
0
votes
1answer
23 views

btrfs send/receive: is it possible to bootstrap a subvolume clone using already existing data?

I have two hard disks on two machines, connected remotely. I would like to start using the promising btrfs send/receive feature to speed up the incremental backup I take over the net, instead of rsync....
0
votes
2answers
42 views

Rsync does not exclude files or folders with “[” or “]” in file/folder name

I am trying to Rsync some files and folders to a remote server with the command as: rsync -rtOzv --partial -e ssh /media/external/Media/ user@serverip:/media/external/Media --exclude-from='/srv/mr/...
0
votes
0answers
50 views

Backup a Windows with an equivalent of rsync on Linux

I have a computer with a dual boot, a Linux and a Windows. My Linux is backuped with RSYNC on a NAS and it works fine. And from my linux I want to do the same thing with my Windows partition. So i ...
0
votes
0answers
19 views

Using cron to automate backing up server with rsync doesn't work [duplicate]

I have a linux server hosting Minecraft that I can connect to using ssh, I should probably also mention that I do have an ssh key with no passphrase. I want to backup my Minecraft world every hour to ...
0
votes
0answers
9 views

cwrsync hide “[sender] hiding … because of pattern …” from output

I'm setting up a backup with cwRsync from Windows to a RSync Server Linux. I redirected stdout to a logfile. All seems works, but my logfile is full of crap. I set up some extension as excluded (like *...
0
votes
2answers
53 views

RSYNC - owner/group local PC don't get set correctly

When I run the following command owner:group are taken over correctly: rsync -chavzP --delete SOURCE-SERVER DESTINATION-SAME-SERVER However, when I run the same command to sync from the server to my ...
0
votes
1answer
60 views

Linux user and password copy between servers with cron script [duplicate]

I have two Red Hat 7 Linux servers that I want to keep user accounts synced. I have a bash script that copies these files between servers: /etc/passwd /etc/shadow /etc/group /etc/gshadow /etc/subuid /...
1
vote
0answers
59 views

Unable to turn off strict host checking when rsync'ing between two servers using agent forwarding

I got this command: ssh -A admin@example.org rsync -avz /etc/apache2/ssl admin@172.30.0.139:/etc/apache2 It throws an error: Host key verification failed rsync: connection unexpectedly closed (0 ...
0
votes
2answers
105 views

Creating backups with tar.gz and rsync

I'm trying to use this bash script to create and send the tar.gz file to my backup server, some reason it doesn't seem to copy it, is there a better solution to what I'm trying to do? I'd rather have ...
0
votes
0answers
24 views

rsync not sending data

I am using rsync on my linux server with this command to send data to a windows SSH server rsync -avzhe ssh /home user@ip when i SSH to the windows machine, it shows me the home directory backups in ...
0
votes
1answer
307 views

Rsync over ssh into a Docker mounted volume

I would like to make a rsync backup of a Docker volume on a remote host. This method should have the following advantages: rsync files with user and owner permissions that are not granted to the ...
1
vote
0answers
52 views

rsync over ssh getting permission denied errors in Cygwin

I have a ubuntu 20.04 server I just set up and I'm trying to backup a few windows computers to it using rsync over ssh. I've set up password less keys and that seems to work. I've also setup the ...
1
vote
0answers
243 views

Using Rrsync with Synology Active Backup for Business - is it save to comment out a line

Background: I want to use a Synology diskstation for the backup of Ubuntu Linux servers, without the diskstation having write access to the server for security reasons. I am using the /usr/bin/rrsync ...
1
vote
0answers
45 views

sudo rsync -a doesn't preserve ownership nor permissions

I really have no clue what I am doing wrong. I want to backup my SSD to an external HDD using rsync. I have several users using the SSD and I need to preserve all ownership and permissions. So I'm ...
1
vote
1answer
72 views

(rsync on) mounted volume: hard links seem to be preserved, but space calculated as full files

I'm trying to set up a space-efficient rotating backup scheme with rsnapshot / rsync from a server to a Hetzner storagebox. I'm having a hard time understanding how hard links on the destination are ...
0
votes
2answers
77 views

Does rsync preserve hardlinks on the destination when source files are identical but separate?

I am running a (Linux based) rsync server for software distribution. A (Windows based) source repository server which is outside my control pushes software packages to it via rsync, and about a ...
0
votes
0answers
41 views

How does one go about using master to master replication along with something like rsync to keep two identical copies of an application identical?

I have servers that do things for me at home, for instance they keep copies of my bookmarks in the way that del.icio.us used to (nextCloud) and keep copies of my code (gitea). Initially I thought that ...
1
vote
0answers
22 views

rsync -H with --link-dest and potential link corruption

man rsync for -H includes: "If you specify a --link-dest directory that contains hard links, the linking of the destination files against the --link-dest files can cause some paths in the ...
0
votes
0answers
71 views

Merging Two Folders with the Same Name And Subfolders

Here is the issue, I some how ended up with a scenario like this on my Synology DS918+ SAN: Two folders with the exact same name in different areas of a user's home directory Each of the folders ...
0
votes
3answers
68 views

rsync but keep destination ownership without setting to source ownership

I've got some files which I would like to sync to a linux server. Only problem is it resets the ownership and group to the current user and group. Unfortunately the options --owner, --group, and --...
1
vote
0answers
104 views

Issues using cwrsync on windows

I am trying to use cwrsync on a windows machine to copy logfiles from a remote Linux host to my local PC through SSH. When I run the command below, I get an error in my CMD prompt that fails to ...
0
votes
0answers
24 views

linux rsync how can keep deleted file from source

I have 2 folder that have to sync . I want to backup my deleted source files and keep them into a backup folder when I used from -b it doesn't work. I use this command rsync -bzcrlhi --backup-dir=/app/...
2
votes
1answer
262 views

rsync remote find prefixes home directory?

I am attempting to pull everything from a remote directory which is more then ten minutes old, and then remove the source files. My remote find seems to be working (tested independently on the remote ...
1
vote
0answers
97 views

Getting lsetxattr errors using rsync with some files that have Apple resource forks

I'm running a backup of a MacOS machine to a Linux server using rsync. There are a few files that give errors every time, and I'm trying to figure out how to deal with them. I'd like to not get these ...
0
votes
1answer
47 views

rsync delete all source files that are synchronized with destination

I'm using rsync --remove-source-files --ignore-existing src/ me@server:dest/ to upload new files to the remote server without clobbering/updating any existing files. Any newly uploaded files are ...
0
votes
1answer
73 views

Is it a bad idea to use rsync as root to sync /etc/letsencrypt and /etc/nginx between servers?

I have a failover setup with two servers and would like to sync /etc/letsencrypt and /etc/nginx between primary and replica. I am planning on using Match Address on replica to only set PermitRootLogin ...
1
vote
0answers
25 views

Compare 2 Directories and Move Differences to a Third directory

Running Ubuntu 20.04 and want to compare two directories called 1 and 2 and move differences to a separate directory called 3, ideally conserving the subdirectories. I am able to get almost the ...
0
votes
0answers
20 views

How does the rsync daemon handle simultaneous access to the file?

In order to give different permission to different users. I have module like this: [cvs] path = /data/cvs comment = example uid = rsyncbackup gid = rsyncbackup read only = no ...
0
votes
1answer
52 views

Rsync Files only if they have not been changed in the last 2 minutes

I'm trying to write a simple cronjob that looks in a specific directory, performs a find command to determine if a file has been modified in the last two minutes, and if not, transfer that file to ...
0
votes
3answers
208 views

How to estimate how long an rsync of 427GB directory comprises of 470k subdirectories and 4476k files would take?

I have a directory that I want to rsync over a 1Gb LAN to another machine. The rsync command is /usr/bin/rsync -a --delete --numeric-ids --relative --delete-excluded --rsh=/usr/bin/ssh root@machine....
0
votes
1answer
174 views

Add timestamp to a filename during rsync

I'm using rsync to move files uploaded on an extern system to a internal system. However I recently had someone upload two different files with the same name. Meaning they had a file from Month1 and ...
1
vote
0answers
76 views

Sudo needed a second time when rsync files with ssh key

I use a command to transfer files with rsync and a ssh key: sudo rsync -P -e 'ssh -i <absolute path to keyfile>' <file> user@<server> I need the first sudo because the file I'm ...
2
votes
1answer
81 views

Fastest way to tranfer data over the network between two servers

I have two storage servers at home - one is my workstation, which has a pair of 3TB disks in RAID1. At first, I stored all of my data there. Recently, I received a small SBC with four 1TB disks. I set ...
0
votes
0answers
22 views

Duplicity ask passphrase when use SFTP but doesn't for Rsync

I use my GPG public key for encryption with Duplicity. when I use Rsync for destination, Duplicity doesn't ask passphrase. but when I change the scheme to SFTP or SCP, it needs the passphrase. what's ...
0
votes
0answers
25 views

Backing-up Linux server's 700GB data comprising mainly of files less than 10KB

What would you recommend as backup for the following scenario? I have a CentOS 7 Linux server, with about 700GB data, comprising mainly of files less than 10KB. The backup media needs eventually to go ...
0
votes
0answers
68 views

How can I rsync multiple subfolders without overwriting content for folders with the same name?

I'm having troubles with the following problem. I want to save one subfolder with a common name of many subfolders. For example, use the following commands to prepare the scenario: cd /tmp/ mkdir ...
0
votes
2answers
1k views

Cygwin and rsync on Windows 10

I'm trying to use rsync in a Cygwin terminal to sync some folders with my linux server. The problem is, the password prompt comes up ok but when I enter the password, it is echoed to the screen and ...

1
2 3 4 5
31