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

Questions tagged [rsync]

a utility used to synchronise files between locations (possibly over a network)

Filter by
Sorted by
Tagged with
2 votes
1 answer
140 views

Ubuntu 22.04 SSH the RSA key isn't working since upgrading from 20.04

Up until last week I was running Ubuntu 20.04 happily, and then over the weekend decided to back everything up and install 22.04. I've had a couple of teething issues which I've solver, however I'm ...
user avatar
  • 103
0 votes
1 answer
30 views

Question about jetson Nano and rsync

Recently I bought jetson nano of Nvidia, with eMMC. Unfortunely the eMMC has very little space so I decided to buy an external ssd to increase the space. I guy from the nvidia forum helped me a bit, ...
user avatar
0 votes
0 answers
39 views

How use rsync to copy the content of one directory and put in multiple direcotries?

I have a directory let's name it "A". And I want to copy its contents to directory "B" and "C". But the problem is that I don't want to pull all the contents, say "A&...
user avatar
0 votes
1 answer
12 views

rsync all subdirs with a given name, at whatever depth in the tree

I have several subdirs named admin in my tree, at various depths. I mean to rsync all of them (keeping the original depth and names of parents thereof), and exclude the rest of the tree. What should ...
user avatar
0 votes
1 answer
97 views

How to use SSHPASS with rsync and SSH in an automated shell script?

I'm copying images from another PC every 3 hours. But recently I encountered an error. When I try to ssh to that PC I get this: Unable to negotiate with 192.xxx.xx.xx port 22: no matching key exchange ...
user avatar
0 votes
0 answers
49 views

Unable to create hard links on Samba Share

I am trying to create backup snapshots to my Samba shared drive. The idea is rather than overwriting the backup every time, I would like to create incrementing backup with hard links using rsync as ...
user avatar
  • 123
0 votes
1 answer
28 views

rsync hanging on large transfer

I'm attempting to backup a mounted drive on one system to another. In the past, we've used rsync which has mostly worked (but perhaps not always) but recently the source drive did not mount properly. ...
user avatar
  • 1
0 votes
1 answer
48 views

rsyncing the first 100 folders for performance testing

I am trying to measure the performance of the newly set up NFS drive between our servers so I am trying to sync 100 large files. I have 400 folders that each only contain one large files. How can I ...
user avatar
  • 3,661
0 votes
0 answers
55 views

Can't run rsync as root

So I recently set up a new installation of Ubuntu 20.04 LTS. I'm trying to migrate my Zimbra Server to it, and in preparation for this I need to rsync quite a bit of data to the new Server (...
user avatar
0 votes
0 answers
24 views

How to keep synchronized in real time two Ubuntu installations?

I'm looking for the better tool /method / technique that can help me to keep synchronized in real time two Ubuntu installations. I want that every change I make to one of them will be immediately ...
user avatar
  • 349
-1 votes
1 answer
110 views

rsync doesnt copy permissions to external drive

a similar Q is asked here: https://unix.stackexchange.com/questions/229779/rsync-command-not-preserving-permissions. They suggest using sudo, but sudo makes no difference for me the command i'm ...
user avatar
0 votes
0 answers
29 views

Post Rsync Migration Apt Not Recognizing Installed Packages

My server was recently migrated via rsync, while everything appears to work correctly apt doesn't recognize the existence of some packages and services. Question: Is there a way to 'refresh' apt so ...
user avatar
5 votes
1 answer
378 views

Simple Backup bash Script with nohup and rsync

I have the following simple command to start my backup process in the background with nohup: nohup rsync -a /src /target & I am trying to find a proper solution to capture the exit code and send ...
user avatar
  • 183
2 votes
1 answer
461 views

Using wildcards in "sources" for `rsync` command

I am trying to backup some files on another drive using rsync. As a test case, I am trying the following command: rsync -Rav --delete --stats /home/my_user/bin* "$dest" This command will ...
user avatar
  • 6,478
0 votes
1 answer
24 views

Why is rsync adding an extra level to my destination folder?

Hail and well met! This is m first time using rsync, and I'm not sure how to get the results I'm expecting. I'm trying to rsync my music library and saved playlists. My two source folders are... ~/...
user avatar
0 votes
0 answers
67 views

include variable ( string ) in rsync cmd

My question is quite specific and relates to using rsync within a python script, an os command where I would need to include a variable ( string ) containing an ip address. The local ip address is ...
user avatar
0 votes
0 answers
184 views

rsync pattern to include all files of specific patterns and exclude the rest, from all subdirectory tree

I mean to rsync some files of a subdirectory tree at dir1. I am using [dir1]$ rsync --itemize-changes --recursive --update --times --include-from="rsync_include.dat" --exclude="*" -...
user avatar
2 votes
0 answers
41 views

rsync - change/modify date not correctly set

Since Ubuntu 21.10 upgrade, we have a rsync error of file date set In Ubuntu 21.10 : rsync 3.2.3-4ubuntu1 -> change and modified date are not copied during sync in most files In Ubuntu 21.04 (and ...
user avatar
  • 21
0 votes
0 answers
56 views

what is taking so long when using rsync to copy from one portable hard drive to another

Hi All: I am using ubuntu 21.10 and trying to copy 500 Gig from one portable hard drive ( using WD Passport but I doubt that matters ) to another portable hard drive ( also WD Passport ). It's been ...
user avatar
0 votes
0 answers
40 views

rsync apparent failures

Platform: W10. I'm using rsync in WSL to (in principle) mirror the contents on one external hard drive (F:) to another (H:). Both are formatted NTFS. I start (as root in WSL) just by rsyncing the ...
user avatar
0 votes
1 answer
56 views

rsync exclude file what given from a find command

OS=lubuntu 20.04. I will upgrade to 22.04 (is not the question) I want to backup my $HOME, but there are some files that belongs not to my user Is it possible to give rsync the output from find and ...
user avatar
  • 4,216
0 votes
0 answers
26 views

Copy new created file to annother folder

I have folder A where a new pdf file is created automatically at irregular time occurrence from an external process. This is my archive folder. It should remain untouched. I need to make a copy of ...
user avatar
  • 1
1 vote
1 answer
68 views

cron rsync , how to redirect to a file on desktop

I would like a regular backup of files on my disk to a backup server. Since I have lots of files (millions) I want to use rsync so only the differences are sent. from Ubuntu 18.04 terminal, this ...
user avatar
  • 107
0 votes
0 answers
61 views

Two way synch from Desktop to (ReadyNas) network drive

I am trying to make my documents folder synchronise with my ReadyNas network drive. Currently, I am already synchronising my Windows Laptop's Documents folder with the network drive on my ReadyNas via ...
user avatar
0 votes
0 answers
41 views

Rsync with a secondary user

I need to give the ability for a secondary user to write files to a specific folder in the home directory of the primary user. I created a user test without a home folder Created a secondary group, ...
user avatar
  • 1
0 votes
0 answers
30 views

date change during rsync operation

Ubuntu 21.10 - using rsync -av (have been for years) random transferred files switch the date to "now" which means at the next transfer it transfers those files again which means the ...
user avatar
  • 1
0 votes
0 answers
39 views

Ubuntu 21.04. How do I check an rsync backup set?

I’ve been using Timeshift and have about 200+ snapshots (190GB) in my Timeshift backup set. What are the commands to check this backup set? I want to make sure the backup set is not corrupted. Restic ...
user avatar
1 vote
1 answer
88 views

rsync gets stuck in backing up thunderbird emails

I do my backups with rsync. Now rsync gets stuck transferring my email folders. I use 20.04 and thunderbird 78.13.0 (64-Bit). I start my backup with this: #!/bin/bash rm -Rf /home/anja/.cache/* for ...
user avatar
5 votes
6 answers
1k views

How can I download a Cygwin package (and its dependencies) under Ubuntu?

I developed a backup tool for Windows which uses rsync from Cygwin. I am myself using Ubuntu. I want to download the Windows rsync package and all other packages it depends on under Ubuntu. Is this ...
user avatar
  • 499
0 votes
0 answers
68 views

sync Permission denied (13)

Im trying to rsync from Ubuntu Server 1 to Ubuntu Server 2 Generated a key pair on Ubuntu1 that the script will use for authentication to each of my remote ubuntu DPs Copied the public key to each of ...
user avatar
0 votes
0 answers
25 views

Attempt to move a large virtualbox vdi file repeatedly fails from one drive to another

I have read numerous ways of moving a large file from one drive to another, but none of them address the issue I am having.This could be a post for a VirtualBox forum and I will post there as well and ...
user avatar
1 vote
1 answer
165 views

rsync refuses to exclude directory

I'm trying to make a OS backup with rsync and have put this into crontab. which by itself works great, but for some reason it refuses to take /export into account while looking at the excludes... 0 2 *...
user avatar
  • 51
1 vote
1 answer
264 views

Not getting the right output when using rsync --delete

I'm trying to delete files using rsync --delete but i keep getting this output. cli screenshot
user avatar
0 votes
1 answer
408 views

How to copy read-only folder using rsync

I'm trying to copy a folder using rsync rsync -avP "$src_path" "$target_path" Where src_path is a read-only directory. AFAIK, to copy, the source doesn't have to be modifiable ...
user avatar
1 vote
0 answers
149 views

"Disk Full" After a rsync failure?

So I ran an rsync over night in a tmux sessions. It was to copy contents from one mount to another (USB disks). Rsync command was: rsync --info=progress2 /mnt/wdpassport /mnt/wdredpro When I woke up ...
user avatar
  • 111
0 votes
1 answer
30 views

rsync or cp for coping debs ans settings

Hi there I've written a script to backup my cache and etc directory. Just trying to decided whether or not to use cp or rsync. It's important that all files are copied with permissions preserved.
user avatar
  • 21
0 votes
0 answers
73 views

Ubuntu Server Backup Script

Need some help to tune a script to perform backups of my system. So I have a server 20.04 up and running, every now and then, when I make some updates/changes it breaks something, and I loose some ...
user avatar
  • 33
-1 votes
1 answer
385 views

How to fix Lsyncd Active (exited) Error?

Installed lsyncd on Ubuntu 20.04 create lsyncd.conf.lua settings = { logfile = "/var/log/lsyncd/lsyncd.log", statusFile = "/var/log/lsyncd/lsyncd.status" } sync { ...
user avatar
1 vote
0 answers
43 views

not able to sync from server to server to /etc/letsencrypt location

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
89 views

Bash rsync script won't complete on large backups

Over the last year or so, I've be trying to learn bash scripting on Ubuntu (one 20.04 LTS box and one 21.04). I feel that my skills have been progressing nicely, but I'm at my wits end with one ...
user avatar
0 votes
0 answers
89 views

Ubuntu 21.04 and 1st Timeshift system backup. Look correct?

I'm new to Ubuntu. I'm trying to do my first system backup using Timeshift. The screenshot with the details is here https://imgur.com/a/ZelWeZJ My Ubuntu system is about 4 days old. This first initial ...
user avatar
4 votes
2 answers
804 views

Can I copy a file to two drives at the same time from a single read? (Copy one-to-two in single operation, preferably in rsync)

I frequently need to back up a source disk to multiple target disks. At the moment the workflow is rsync from source to target1 then dd clone target1 to target2. It would be lovely if I could rsync ...
user avatar
0 votes
0 answers
114 views

Delete files using rsync only after so many days

Does anyone have a good way to have rsync delete files only after so many days it has been removed from the source? Kind of like, I delete file x on day one from source, by day 30, the file is then ...
user avatar
0 votes
0 answers
156 views

SCP/RSYNC don't work in Crontab but work when run standalone

I need to copy a backup file to a backup server everyday. I am using PublicKey SSH authentication. All of the things work but not together: If I run this line in crontab rsync /home/ubuntu/*...
user avatar
0 votes
0 answers
41 views

Rsync -remove-source-files option doesn't transferred the data to mounted disk

I have mounted a windows folder on my local linux machine using mount.cifs command, everything working fine. I have been doing rsync -remove-source-files to transfer files to the mounted share. ...
user avatar
0 votes
1 answer
1k views

Changed permissions of docker volumes folder > You don't have permission to access this resource

I am running an instance of nextcloudpi in docker. I wanted to sync the data folder between two server via rsync, but got a permission folder. So I tried to give my user "John" the ...
user avatar
0 votes
2 answers
44 views

Comparing structure of files

I got 2 structures of dirs: dir1 ├── 1 │ └── file1 ├── 2 │ └── file1 ├── 3 │ └── file1 ├── 4 │ └── file1 ├── 5 └── file1 dir2 ├── 1 ├── 2 ├── 5 I use xargs mkdir -p < dirs.txt to make ...
user avatar
0 votes
0 answers
42 views

How to restore rsync backup to raid 0 mdadm

How is possible restore rsync backup to MDADM Raid 0 (2 HDD)? I know how to restore backup via RSYNC to one HDD but how to do it on MDADM Raid 0? Thank you for tips and help. Best Regards Martin
user avatar
3 votes
2 answers
2k views

How to rsync my Google Drive with a local folder?

Since the built-in nautilus Google Drive is so super slow, I was wondering if there is a way to have my Google Drive contents automatically downloaded to a local folder and then when I make a change ...
user avatar
0 votes
0 answers
41 views

Syncing / Migrating Thunderbird Between Ubuntu and MacOS?

I'm trying to sync my Thunderbird files between my Ubuntu workstation and my MacBook. From Ubuntu to Ubuntu it's really easy. We can just rsync the ~/.thunderbird between the two machines. I noticed ...
user avatar
  • 1,417

1
2 3 4 5
15