Questions tagged [synchronization]

Use this tag when the topic is related to coordinating systems to have the same data or state or time. It can be part of redundancy.

Filter by
Sorted by
Tagged with
1 vote
2 answers
121 views

Bash frequently fails to redirect stdout to a file (from cat)

I commonly append to text files using cat: cat >> FILE I use an alias to avoid accidentally overwriting the file (with a single >): alias a='cat >>' Enter changes the line and Ctrl + ...
user598527's user avatar
-1 votes
2 answers
36 views

Rsync with multiple wildcards

How can I rsync all files of multiple types from a remote server? E.g. I want to rsync all pdf's and png's from a folder on the server. This raises a syntax error: rsync REMOTE_SERVER:REMOTE_PATH/{*....
dkv's user avatar
  • 457
0 votes
1 answer
53 views

Why using Grsync to synchronize pendrives in opensuse leap 15.5 , when I insert them in a windows10 OS they are seen as corrupted even if they work?

When I use grsync in opensuse leap 15.5 to synchronize pendrives, it works perfectly , only when I insert one of those pendrives in a windows10 OS they are seen as corrupted and a correction is ...
Harlequin's user avatar
0 votes
0 answers
21 views

How to rescan/rebuild /dev/sdx after "raw" dd restoration [duplicate]

I'd like to know how to request Linux to update /dev/sdx after doing a "raw" dd restoration of a whole hard disk partitions ? I have to use dd instead of sfdisk to restore the partition ...
Louthrax's user avatar
0 votes
1 answer
34 views

How do you synchronize files with partially failed download using rsync?

I'm trying to synchronize literally thousands of files of various sizes and I would like to have a 1:1 copy of the files. That means that already present files should be checked for their integrity ...
Sir Muffington's user avatar
0 votes
1 answer
33 views

How to syncronize credentials in a small laboratory? (very slim alternative to ldap)

We run a small lab with 20 Linux systems (RaspberryPI, NAS, Desktop PCs) for research with 4 scientists who all need sudo permissions. We trust all 4 users as they have sudo permission and physical ...
Jonas Stein's user avatar
  • 4,078
0 votes
0 answers
38 views

Copy new files (or their hard links) to new location with other folder structure and with new name

I hope someone can advise me on a very tedious, repeating task. My university uses Moodle as its eLearning and file exchanging platform. So every now and then our tutors upload new files, that I have ...
lumanet's user avatar
1 vote
0 answers
2k views

A fast way to sync local files with Proton Drive? (here exploring rclone)

I want to create a sync system between newly available Proton Drive and my local filesystem. However, since it's very new, it's only barely supported by rclone (I'm lucky to be on openSUSE Tumbleweed ...
Ul Tome's user avatar
  • 117
0 votes
0 answers
77 views

Best way to run unison with rclone: several configs in parallel or all in one?

I'm using rclone to mount my cloud (Proton Drive, new arrival) on openSUSE Tumbleweed. I want to sync my local files with the mounted files via unison. I've never used unison before, so I have two big ...
Ul Tome's user avatar
  • 117
0 votes
0 answers
39 views

Rsync transactions?

I use rsync to move changes in my data between two computers. I do backup of data dir from PC2 to usb stick and than I insert usb stick to PC1 and run rsync to update data dir on PC1 according to data ...
youni's user avatar
  • 26
0 votes
1 answer
75 views

Synchronize Data between two locations

I have to locations with a lot of data. Both locations have a slow Internet connection. So it's impossible to sync the Data between both locations via Internet. So the idea is to use a sneaker net to ...
user39063's user avatar
0 votes
0 answers
15 views

Flashing a bootloader without the use of sync doesn't work [duplicate]

So some background I was scripting building an SD Card Image for the Anbernic RG350M device. This involves flashing a boot loader to the image. See below. dd if="./select_kernel/squashfs-root/...
AeroMaxx's user avatar
  • 189
2 votes
1 answer
252 views

System time synchronization between two hosts using linuxPTP

I would like to setup a high-precision system time synchronization between two machines using linuxptp. On the first host: the system time is periodically synchronized using NTP using an interface ...
Emeric Verschuur's user avatar
0 votes
1 answer
308 views

Sync Data between 2 linux machines through SFTP

We have Linux Machine 1 - Directory1 (include all sub directories and files) We have Linux SFTP Machine 2 - Directory2 (include all sub directories and files) I am looking for a solution / tool which ...
LifterBecks's user avatar
0 votes
1 answer
132 views

Is rsync the best way to keep four drives synched?

I googled but I can't see the best solution for my purpose. Using LUKS I have physical drives: A,B,C,D I need: when I write something on drive A, automatically or scheduled changes are written on ...
Acca Emme's user avatar
  • 101
0 votes
0 answers
45 views

Only able to fix rclone certificate error over ethernet (it won't work over wifi) Why?

rclone will run fine for months at a time. The command I run most often is: rclone sync {{path/to/file_or_directory}} {{remote_name}}:{{path/to/directory}} Then - seemingly out of nowhere - I run my ...
jophuh's user avatar
  • 13
1 vote
1 answer
167 views

Does loopback-device-backed-LVM operations such as lvextend need call sync afterward?

There is an os image file say test.dd, and an LVM managed partition inside. Enlarge the os image file size, then enlarge the partition size to full. Create a loopback device for test.dd, then get the ...
osexp2000's user avatar
  • 492
0 votes
1 answer
178 views

Similar program to rsync but to instead use a shared cache directory or source?

With rsync, the files or data delta (difference) is compared directly between the source and destination. Is there an alternative program that can compare the delta between the source, destination and ...
Chris Stryczynski's user avatar
0 votes
0 answers
336 views

How accurate is the PPS device?

I am doing research in timing synchronization, and want to measure how time synchronization is impacted by injecting various faults into a system. I understand that the PPS devices on linux machines ...
stochasticlover1's user avatar
0 votes
1 answer
248 views

Does write(fd with O_SYNC) only flush data of THAT fd instead of all caches caused by other fds of same file?

I was using dd command to change a single byte of a block device(not the partition block device), such as /dev/nvme0n1, at a specific position (not managed by normal file). dd of=${DEV:?DEV} seek=${...
osexp2000's user avatar
  • 492
0 votes
1 answer
1k views

Chrony - Synchronize the date and time of all host computers in a network without internet connection

I have two machines, host A with IP 192.168.0.1 host B with IP 192.168.0.2 They connected to the same network and I would like to set the date and time of machine B to match those of machine A. ...
UserK's user avatar
  • 2,414
0 votes
0 answers
30 views

I need to rsync from Ora1 vpn (as user michal) and rsync files into Ora2 vpn (as user srv_data). User 'michal' is in wheel grp on both Ora1 and Ora2

Hello Unix enthusiasts. I have two vpms called Ora1 and Ora2. I need to synchronize the contents of /DATA/ directory from Ora1, into the same /DATA/ directory located on the Ora2 vpm. Ora1 /DATA/ ...
michal roesler's user avatar
0 votes
1 answer
438 views

Using RTC PPS for syncing computer by NTP

I've seen a decent amount of documentation for how one would use a GPS and its PPS signal along with an NTP package (like ntpd or chrony) to synchronize the computer's clock. I have a need similar to ...
Morten Nissov's user avatar
0 votes
1 answer
253 views

How to synchronize files between a NixOS declarative container and local system path (equivalent of docker-compose volumes functionality)?

I have NixOS 22.11 set up on a local workstation. I use extra-container package, which can run declarative NixOS containers like imperative containers, without system rebuilds. I'm trying to run a ...
protob's user avatar
  • 251
1 vote
0 answers
105 views

how to force debian to wait till the external usb HDD has synced before turning off

I think that my debian box (debian testing, rather updated) is powering off before completely syncing the external USB HDD (where I am holding my home partition at the moment). I see that when it is ...
eftshift0's user avatar
  • 571
0 votes
1 answer
68 views

Confirm files exist in both locations, excluding directory structure

I have a folder of photographs (original directory). I imported these photographs into Shotwell, which has copied the files into a directory structure based upon EXIF data (new directory/year/month/...
student's user avatar
0 votes
0 answers
61 views

Is there a Linux tool that can automatically syncronise (monitor) two folders on local drives with different filesystems?

I have Linux computer with external NTFS drive. I need one of the directories of the internal drive (ext4) being automatically syncronised with an external drive directory. The complication stems from ...
S. N.'s user avatar
  • 177
0 votes
1 answer
138 views

How does the Kernel implement synchronisation techniques on file access

I've read that the kernel implements synchronisation mechanisms when accessing files. For example, if we try and write or read to a file in the file system using read() or write() from different ...
Engineer999's user avatar
  • 1,131
1 vote
2 answers
1k views

One-way synchronize with cp and busybox

I need to one-way synchronize local folders using only cp and/or other tools available in the BusyBox 1.35 which has no rsync. I was hoping for something like: cp -auv /source/ /target, but it won't ...
rych's user avatar
  • 131
1 vote
2 answers
72 views

Which disks does "sync" synchronize?

The man page of sync can be found on die.net. I wonder if it only synchronizes the disk of my current working directory (cwd) or all disks? The man page does not say anything about it.
zomega's user avatar
  • 960
1 vote
1 answer
275 views

rsync not detecting changed file with option --append-verify

I have invoked rsync with the options --checksum and --append-verify. My understanding of the processing for this combination of options has been that the application would behave as in the ...
brainchild's user avatar
0 votes
1 answer
682 views

How do I access my passwords from `pass` from another computer without transferring private GPG keys?

I recently learned about pass git integration, which allows to sync my passwords with a remote git repo. Which I instantly didn't hesitate to configure. So then I decided to clone this repo on another ...
WhiteBlackGoose's user avatar
0 votes
1 answer
66 views

List of applications using dsync or is dsync used in production?

We want to use dsync in production server, Is it production ready? I want to know the list applications using dsync. can someone provide me the list of applications which are using dsync. Source code: ...
Mani's user avatar
  • 564
2 votes
1 answer
89 views

Save copy process/work by use of update in cp

How is to update in cp -u to really work in saving file save/copy work just copied to /tmp/onram/cpp and only moddded gainRun.sh $ ls -l drwxrwxrwx 2 root root 80 Oct 7 07:02 /tmp/onram/cpp total 8 -...
user avatar
2 votes
1 answer
267 views

Unable to navigate to local google drive sync files in Linux Mint

I am using linux mint 20.1 Cinnamon. I have turned on google account in online account setting for google drive syncronisation. So in my folder explorer, there is an entry under networks relating to ...
jeea's user avatar
  • 133
0 votes
1 answer
209 views

fpsync syntax error

[oraadmin@sgwmsdbsprd03 ~]$ fpsync -v -n 8 -o "-lptgoD -v --numeric-ids -e ssh -p 222" /app/test/ [email protected]:/app/testing 1661915613 Info: Run ID: 1661915613-41320 1661915613 ===&...
Heinthant Oo's user avatar
0 votes
1 answer
919 views

What's the best way to rsync two directories with git repositories?

I have two machines that I use for work. One is the local machine located at my home, and the other is the remote machine located at my office. I have a "development" folder in which I keep ...
Shihab Khan's user avatar
1 vote
1 answer
277 views

Rsync not considering timestamps while syncronising git repos after permissions changed

I had a git repo on machine A. I did an rsync from machine A to machine B using the flags rsync -zvaP /media/shihab/development shihab@remote:/media/shihab/OSDisk/development Later I did some ...
Shihab Khan's user avatar
4 votes
3 answers
4k views

When and why should I sync a file in Linux?

I've read information about the use of sync command in Linux and how it works. But I'm unable to understand when I really should use it in files and I don't find practical examples. For example, the ...
Edgar Magallon's user avatar
0 votes
2 answers
68 views

Using cp -u but only if content is different

How to use cp -u to only copy if content is different, it fails when doing as below $ cd /tmp/exper ; cp -v ~/Downloads/C/test.c . ; sudo chmod -R 777 . /home/budi/Downloads/C/test.c -> 'test.c' $ ...
user avatar
1 vote
1 answer
381 views

How to sync two folders with the same file names but different extensions

Is there a means of using rsync to sync two folders? I would like to shoot photos in JPG and RAW. Since viewing JPGs is much quicker than opening up RAWs, I'd like to do culling in the JPG folder and ...
Sparatan117's user avatar
1 vote
1 answer
132 views

PPS on focal/20.04 timed out and never recovers

we recently have upgraded to a new industry PC from Vecow/Plugin and to Ubuntu 20.04 from 18.04. From the BIOS (build date BIOS ~17.02.2022) and the IO chip according to it is a SuperIO 8786: https://...
Ritualmaster's user avatar
1 vote
0 answers
3k views

MEGAsync with mega-cmd: How can I initiate syncing from command line?

I'm using MEGAsync from mega.nz. Recently, I've encountered a bunch of problems with the syncing software. One of those problems, was that it seems to have trouble syncing (or scanning?) files that ...
polemon's user avatar
  • 11.4k
0 votes
0 answers
21 views

Syncing Debian ntpd with Windows time server [duplicate]

unfortunately my problem listed here was not solved. It would seem that the issue was not with the ntpdate at all: when bypassing the university network all together, time sync works correctly. The ...
ksonofre's user avatar
1 vote
2 answers
104 views

How I can install the OS linux files on many pc with a linux server?

Ok, so before starting I am a French high school student, so I may make mistakes. My tech/computer teacher this year created an association in which, volunteer students can hand over old high school ...
Pioupia's user avatar
  • 113
2 votes
1 answer
4k views

Automatic time synchronization: `ntpdate` works but `chrony` does not

I have a problem with time synchronization of my Linux server. Both this machine and the NTP server are located in a (smaller) university data center hence the local address. What is strange is that ...
ksonofre's user avatar
0 votes
1 answer
333 views

Not able to assign root privilege to my process again by using setuid(0) in the same boot cycle

I have added the capability by using following cmd on terminal (alternative of setting CAP_SETUID in drop-in file). Verified that setuid/seteuid is working. setcap cap_sys_admin,cap_setuid+ep /...
Anshu Gangwar's user avatar
1 vote
1 answer
532 views

Copy directory recursively only if on target the file exists and only if newer than target

How can we copy file and/or directory only if on target the file exists and only if it is newer than on target, and for the directory case it must recursively copy with such capability as $ ls -a ~/....
user avatar
3 votes
1 answer
2k views

Moving /var onto different disk/partition

I moved the /var directory to a new disk/partition, this part worked well, but I forgot to delete/move the old /var path and it is still using space on / (root) partition. How could I delete the old /...
Leonardo L. Southier's user avatar
0 votes
1 answer
175 views

Synchronizing access to shared, remote resource

I have a shared cache on a remote server that multiple clients are reading and writing to, so I need to synchronize access to this cache. I imagine I could: SSH into the remote and acquire a flock on ...
mola's user avatar
  • 101

1
2 3 4 5
8