Questions tagged [rsync]
a utility used to synchronise files between locations (possibly over a network)
773
questions
0
votes
0
answers
51
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 ...
1
vote
1
answer
503
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 *...
0
votes
1
answer
1k
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
1
vote
1
answer
3k
views
Error while coping from Read-only source using rsync
I'm trying to copy a folder using rsync
rsync -avP "$src_path" "$target_path"
But rsync is giving me this error.
rsync: recv_generator: mkdir $target_path/sub_dir failed: Read-...
1
vote
0
answers
697
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 ...
0
votes
1
answer
69
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.
-1
votes
1
answer
1k
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 {
...
1
vote
0
answers
96
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 ...
0
votes
0
answers
208
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 ...
4
votes
2
answers
2k
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 ...
0
votes
0
answers
427
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 ...
0
votes
0
answers
475
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/*...
0
votes
1
answer
3k
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 ...
0
votes
2
answers
59
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 ...
3
votes
2
answers
9k
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 ...
0
votes
1
answer
254
views
How to patch rsync the correct way
I want to patch rsync to support detect-renamed option, but I don't want to download a patch and extract it, I want to use apt (apt-get), how to do this?
-1
votes
1
answer
105
views
Rsync directory error
I wanted to copy files that are made 15 and more days ago.
Here is the code im currently using
rsync -RDa0P \
--files-from=<(find /vmail/folder1/ -mtime +15 -print0) \
. [email protected]:/...
1
vote
0
answers
517
views
rsync (ubuntu 20.04) to Synology DS218 option -a doesnot preserve user name and group of files
I have been on the internet searching for my problem. I use rsync to copy files from my ubuntu 20.04 desktop to NAS Synology DS218+. It worked fine with ubuntu 18.04.
I was able to reproduce the error ...
3
votes
1
answer
4k
views
After rsync folders have different sizes
I have used rsync to copy a folder from one machine to another. The folder is very large and has thousands of subdirectories and in total millions of files. After the transfer (which was interrupted a ...
1
vote
1
answer
240
views
rsync can not delete .git/objects directory files
I am running the command:
rsync -ab --delete-delay /media/blueray/WDRed /media/blueray/UltrastarDaily
Just to be clear, it delete destination file (--delete-delay) if the file is removed from the ...
1
vote
1
answer
532
views
cannot unmount a disk after rsync backup
I have taken a backup of a large directory onto a mounted external disk, using rsync -av. The command terminated after sometime, but after that I am unable to unmount the disk, when I try to unmount I ...
1
vote
2
answers
2k
views
How to rsync exclude directory and subdirectories Multiple
I want exclude multiple directory and subdirectories and its contents files.
I want to transfer(send) all folder and file from /home/admin/web/domain.com/public_html
But want to exclude these ...
0
votes
0
answers
209
views
Raspberry Pi Rsync
I've run through this guide https://medium.com/xster-tech/move-your-existing-raspberry-pi-4-ubuntu-install-from-sd-card-to-usb-ssd-52e99723f07b in order to move Ubuntu from my SD card to my internal ...
0
votes
0
answers
458
views
How to set up crontab in ubuntu 20.04?
I have written several backup tasks in crontab and I use rsync to do the backup.
One of the backup tasks is as follows:
30 1 * * 6 root rsync -avz [email protected]::codelab /backup/gitlab --password-...
2
votes
2
answers
2k
views
rsync exclude option with file names with spaces
I have been trying to run rsync as follows;
rsync -av --exclude '/home/joe/VirtualBox*' /dst
where VirtualBox* denotes all files and directories under the directory 'VirtualBox VMs'
However, it does ...
1
vote
2
answers
830
views
rsync with --delete-before except if source empty
I back up a hard drive with an rsync --delete-before cron job. The problem is that if the source drive fails then rsync sees it as empty and everything is deleted from the backup - exactly what you ...
1
vote
1
answer
236
views
I think rsync://old-releases.ubuntu.com/ubuntu/dists does not match https://old-releases.ubuntu.com/ubuntu/dists, can you verify?
I'm trying to maintain an rsync mirror of old-releases.ubuntu.com, and when I rsync the /ubuntu/dists directory, I get the same as what's found at https://archive.ubuntu.com/ubuntu/dists. When I visit ...
0
votes
1
answer
1k
views
Lubuntu 18.04, rsync gives me ‘sh: rsync: command not found’ rsync version 3.1.2 is installed
I am trying to rsync the root folder of an iPhone over ssh into a folder at /home/Ryan/Downloads/iphone
$ rsync-e ssh [email protected]:/ /home/Ryan/Downloads/iphone
I then enter the password when ...
2
votes
1
answer
884
views
Compare files in directories with different structures and show differences (20.04)
While this may sound like a task that could be accomplished by rsync, diff and the likes, I haven't managed to succeed.
AFAIK, these tools take the directory structure into account when comparing the ...
1
vote
0
answers
398
views
rsync over direct ethernet connection slows down quickly
I've connected two Ubuntu Server 20.04 machines with a direct ethernet connection. One is a computer with a RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller, the other is a Raspberry Pi 4 ...
1
vote
1
answer
6k
views
Running Rsync in the background
Trying to run rsync in the background
rsync -rt /home/2/folder/1234 root@12345678:/stor/folder
CTRL-Z
Entering bg
and it runs in the background but now when I exit my SSH connection it stops?
I tried ...
0
votes
1
answer
51
views
One Volume Did Not Go DST with the rest of the system
I have one 8TB USB-mounted drive (exfat) on an Ubuntu 20.04 server. The files on there seem to have stayed an hour behind. This is giving various rsync and rclone jobs quite a workout! Any ideas ...
0
votes
2
answers
660
views
How to get rsync to synchronize only new blocks for blockchain
Every time I run rsync to backup a blockchain, it starts from the beginning and tries to sync the whole thing, every time, even though there may only be a few blocks worth of data that is new. The ...
0
votes
1
answer
256
views
Why is Ubuntu unable to do MTP <-> SMB transfers?
Nautilus can't copy between SMB and MTP device.
same for rsync which gives:
rsync: [receiver] mkstemp "/run/user/1000/gvfs/smb-share:server=192.168.1.20,share=backup/phone/files/filename.txt"...
1
vote
1
answer
201
views
The trickier part of a backup: The restoration
I would like to make the backup process of my system as sensible and efficient as possible. (Well, not as possible maybe, but a little bit at least.) In this course, the backup itself is the most ...
0
votes
0
answers
1k
views
How to quickly transfer files (using rsync) from a computer to another
I want to transfer the whole content of a partition from a computer tu another. The answers to this question apparently solve the problem exactly as I wanted. But the result is too slow.
What I did:
I ...
0
votes
1
answer
105
views
rsync log file gets corrupted when using nano editor or mail ( postfix ) command
I have a strange situation where I am re-directing the whole output of an rsync command to a file and the file gets corrupted if I open it with nano editor or if I send the output to outlook mail.
If ...
0
votes
0
answers
38
views
Why is my command line in script modified before execution
I am trying to create an rsync script and am having problems with my parameters. This is section of script causing problem.
rsync -inaruAX --stats --exclude={.[a-z]} $source $destination > "$...
0
votes
1
answer
125
views
How to Transfer files from computer to cloud server using an intermediate server?
I have a hardrive containing 2.5 TB of data. I want to copy these files to my cloud server which has enough hspace. But, this cloud server can only be accessed through a intermediate server, which ...
0
votes
0
answers
74
views
Proper and accurate way to back up in a folder, the hole System
What is the most accurate and safe way to backup the hole System (all the / directory) on ubuntu?
I am new to Linux, and I am running Ubuntu Server 20.10 on a Raspberry Pi, and I want to backup ...
0
votes
0
answers
34
views
rsync error unable to use options
I'm learning rsync.
The man makes my eyes and brain bleed, especially the Option which isn't in alphabetical order and -e has numerous meanings.
I'm testing transferring a file from machine0 to ...
0
votes
1
answer
2k
views
Warning: Permanently added '111.222.33.40' (ECDSA) to the list of known hosts
While I run rsync command to copy one directory from one server to another I get this warning: Warning: Permanently added '111.222.33.40' (ECDSA) to the list of known hosts.
The command looks like:
...
1
vote
0
answers
145
views
Netboot a machine, automatically rsync internal HDD to network master and continue booting from internal HDD
I have a server which stores the master image for a set of client computers.
As of now the clients netboot from the server and use an overlayfs, so any changes do not affect the master image.
Changes ...
2
votes
0
answers
1k
views
rsync from NTFS to ext4
I made a backup of a folder on an external NTFS drive on an ext4 folder and it went fine. The problem I have now is that rsync ignores already existing (and unchanged) files and syncs everything even ...
2
votes
1
answer
949
views
Is there any TUI application for commandline for command rsync?
I use rsync now from the command line between two servers to transfer files. Is there a command line TUI application for rsync or something else which does the same?
Common use cases is to exclude ...
0
votes
0
answers
161
views
Rsync re-transfers entire file after title change
According to rsync's man page:
[Rsync] is famous for its delta-transfer algorithm, which reduces the amount
of data sent over the network by sending only the differences between
the source files and ...
3
votes
1
answer
260
views
How to get an update of deleted file on host machine only with rsync
I run my rsync backups without the --delete flag just in case something is deleted accidentally. In my logs with the -v flag I simply get informed of a change in the parent directory of the deleted ...
0
votes
1
answer
557
views
why is mysqld process top process?
I can hear something pounding away on my hard drive.
I look at top and see mysqld as top process, high 30 to 40% all the time.
No I did not start any process with mysqld.
I just ran a "pkexec ...
0
votes
1
answer
166
views
Backing up Thunderbird from one laptop to another with RSync?
I installed Ubuntu on another laptop that I want to back up to.
I run this:
ole@mkt:~$ rsync -vaz /home/ole/.thunderbird [email protected]:/~
[email protected]'s password:
sending incremental file list
...
4
votes
3
answers
3k
views
Using "rrsync" with sudo on destination machine
I'm trying to create an automated back up of various folders on my server, some of these require root access to read them. I realise that I can rsync as per this answer, namely I can (with success) ...