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
0
votes
1answer
24 views

Lightweight processes behavior with an new PID

I've been experimenting with lightweight processes. Basically calling the clone function and assigning a new PID to the cloned LWP. This works fine it lets me identify all the children threads of ...
1
vote
0answers
20 views

Why doesn't sync guarantee that buffers are flushed?

As far as I can see, the only use of sync is to ensure that there's no incomplete information, which is supposed to be safely written on disk but may actually be still only in a volatile buffer. ...
0
votes
1answer
35 views

Sync two directories: same filename, different fileending, different filecontent

I have 2 folders with subdirectories. One with training images and one with training labels. One image belongs to exactly one label The image and the label have different content The image and the ...
1
vote
0answers
16 views

Sync multiple PCs every boot via home LAN (local files update old version on server)

I need your precious support and advices for a kind of setup for my home computing. So... I have two laptops and a desktop that I use same (or different) times. Every computer has a different distro (...
0
votes
1answer
13 views

Sync 1 config file amongst multiple directories

Lets say I have 4 java instances running on my linux system, in separate directories, all of which have a config file named config.yml. I want to be able to edit 1 config.yml and have it copy across ...
0
votes
0answers
9 views

Sync icon in every file or folder after uninstall overgrive

I need to know how to find the script or directive which add an "sync" icon in every file and folder I synced with overgrive. After I uninstalled overgrive, the icons remains. I want to delete that "...
5
votes
2answers
110 views

Is file creation totally ordered?

On Linux, the openat syscall can be used to create files and to test for their existence. Speaking in terms of the C/C++ memory model, creating a file and verifying its existence creates a ...
0
votes
1answer
27 views

rsync with filter to include only certain file types for specific directory trees

my rsync command looks like this: rsync --update -rav --filter="merge $HOME/mergefilter.txt" ~/ (remote_destination):~/ My mergefilter.txt file looks like this: + /directory_1/*** + /directory_2/***...
0
votes
0answers
17 views

lsyncd - How to upgrade lsyncd from 2.1.5 to 2.2.3 version

How to upgrade lsyncd from 2.1.5 to 2.2.3 version using the command prompt. Or how to install lsyncd 2.2.3. Does have any idea about this upgrade?
0
votes
0answers
46 views

lsyncd - How to include specific directories and exclude rest of all directories

I want to include some of the directories in lsyncd process and exclude rest of all directory. I have so many directories in a multisource directory. I want to include only temp and temp1 directory ...
0
votes
0answers
31 views

Best way to sync OMXPlayer audio and video?

I am having issues getting OMXPlayer video played on a TV via HDMI to sync with audio streamed over the network. My thought was delay the video output by ~500 ms then use pavucontrol to fine tune the ...
1
vote
1answer
46 views

How do I confirm a file sync has completed before executing a command?

I have a computer periodically syncing folders of content with another computer using Resilio Sync. The receiving computer has a sorting process on an hourly cron, which analyses the folders and their ...
0
votes
0answers
11 views

Is there a way to send Power Off to MMC from userspace?

I have an ARM system which boots from an embedded multimedia card version 5.1, runs kernel version 4.14.69, and is shut down by unpluging it directly. I've noticed that there are some patches which ...
2
votes
2answers
50 views

How to copy Linux distribution to different machines?

I want to be able to install a linux distribution on my home PC but also on my Laptop. Since I already setup my home PC is there any possibility I can move the OS to my Laptop without reinstalling ...
1
vote
1answer
39 views

Synchronise passwords across devices with pass

I am looking for a simple, open-source password manager for linux with a CLI. It has to have a way of retrieving a password via the command line, so I can use it in several scripts (that sync my email ...
0
votes
1answer
79 views

Sync Linux Centos 7 Directory With Dropbox in realtime

I do have Linux Centos 7 Server which i would like to sync specific directory with dropbox in realtime. For example, let's say that i do have directory A which is located in /var/www/html/A/ I would ...
0
votes
0answers
20 views

404 error syncing Google Contacts with Roundcube using CardDAV

I have a Roundcube installation running on a Debian server with the CardDAV plugin that was, until recently, successfully syncing contacts with my G Suite account. Today I noticed it had stopped ...
2
votes
1answer
98 views

Why does rsync keep skipping the directory I want to sync? [closed]

I want to sync a directory between my Mac High Sierra machine and a CentOs 7 machine, excluding a certain file. I have tried the below (venv) localhost:dental davea$ rsync -e 'ssh -p 7822' --exclude=...
0
votes
0answers
36 views

Linux | Copy open files to a different directory and keep them Synchronized

I want to copy files while they are in use by an application to a separate directory on my Ubuntu system. These files in the source directory should be in continuous synchronization with their copies ...
1
vote
0answers
37 views

Backup and Sync from Linux to a WSL live (per each change) [duplicate]

I have a Linux (Arch/Debian) with only a CLUI (Bash) and a server environment (LAMP) with the following details: 4 GB RAM 2 vCPU Cores 80 GB SSD 4 TB Transfer 40 Gbps Network In 4000 Mbps Network ...
0
votes
2answers
52 views

Recommendations for editing same file on different machines

Our Rails app is scaled at multiple machines, from time to time, we need to change settings at production.yml , right now we have to ssh into each server and do the editing at each machine ...
0
votes
0answers
42 views

Dropbox alternatives on non-ubuntu

After Dropbox recently dropped support for most linux distribution, I am trying to find an alternative way to synchronize my dropbox folder on one of my machines that do not have Ubuntu. I read that ...
0
votes
1answer
40 views

SCP not willing to transfer remote to remote

My family and I are attempting to sync all our data across multiple locations and devices. Seeing as we are just setting it up, we were wanting to start with the basics before building on it further, ...
2
votes
1answer
169 views

What's the difference between “parent” and “clone source” with “btrfs send”?

I regularly use btrfs send and btrfs receive to copy read-only snapshots from my live system to a backup drive. On the backup drive there are already multiple snapshots. Today I wondered: Can I copy ...
1
vote
1answer
51 views

How to sync after a 'snapper delete'

I have started a snapper delete command, only to find out five minutes later that it is running in the background and seems to take a longer time. Is there a command can I use to get notified when the ...
20
votes
2answers
2k views

Sync a folder between 2 computers, with a filesystem watcher so that each time a file is modified, it is immediately replicated

I have: a Linux server that I connect via SSH on IP 203.0.113.0 port 1234 a home computer (behind a router), public IP 198.51.100.17, which is either Debian or Windows+Cygwin What's the easiest to ...
1
vote
1answer
95 views

Can we trust the files in a filesystem that was repaired by e2fsck?

Topic If a filesystem was successfully repaired by e2fsck, it is guaranteed that it is in a consistent (clean) state. However, it is not easy to assess the reliability of the files themselves after ...
0
votes
1answer
332 views

Upload file to Google Docs with a script

I want to upload a file to Google Docs with a script, to avoid doing it manually over and over again. Is there a way to do that simpler than scripting this with a Selenium what would be really ...
1
vote
1answer
433 views

Does rsync completely overwrite files with different timestamps?

I've used a command similar to this to rsync files from macOS to Linux: rsync -avz <ip-address>:/Backup/ Backup/ The folder Backup/ was previously copied from the same machine using scp, with ...
0
votes
1answer
148 views

Calling sync without root privileges

I can call sync without root privileges. Does it flush all buffers to disk? Is it the same as calling it with root privileges like sudo sync?
-1
votes
1answer
61 views

Why “a lock file is the best approach if the resource is not a regular file, so using methods for locking files does not apply”?

Thanks to Mark's comment, pointing me to https://en.wikipedia.org/wiki/File_locking#Lock_files which says Shell scripts and other programs often use a strategy similar to the use of file locking: ...
2
votes
0answers
74 views

Do the filesystem under Linux enforce serialization, which means only one change to the filesystem actually happens at any given time?

https://unix.stackexchange.com/a/12818/674 says Lock files are used by programs to ensure two (well-behaved) separate instances of a program, which may be running concurrently on one system, ...
1
vote
2answers
171 views

automatically run script on successful time sync - how?

i'm using rapberry Pi 3 with Stretch (debian-based) and timesyncd as NTP client. Pi is being switched of and on periodically and connects to internet through usb modem, then synchronizes time. syslog ...
0
votes
1answer
124 views

Do both synchronous and asynchronous data transfer imply sequential access, not random access?

http://www.engr.iupui.edu/~skoskie/ECE362/lecture_notes/LNB25_html/text12.html says There are many serial data transfer protocols. The protocols for serial data transfer can be grouped into two ...
0
votes
1answer
172 views

Is there any way to prevent chrony stratum plus one?

When using chrony, I synchronize the time from the clock source of stratum=2. Is there any way to prevent my machine from stratum=3, but stratum is equal to 2? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
0
votes
1answer
21 views

Thunderbird overloads my HDD in large operations, what to do?

If I do operations in Thunderbird with many (thousands of) mails, I hear a crashing voice from my HDDs. It sounds really not beautiful. It happens only if I do something with a lot of mails (for ...
0
votes
1answer
117 views

Offline time sync

Is there a reliable way to sync clock of a totally offline linux server, which is only occasionally connected to a client? I imagine passing a single "millis-since-epoch" number to the server may not ...
0
votes
1answer
383 views

What does the sync command sync in fact?

When I do sync as a regular user, does this flush all the buffers belonging to other users including root or just my own? man doesn't provide this info. I'm asking about Debian 9 in particular, but ...
1
vote
1answer
409 views

sync option in /etc/fstab

From the man pages of mount command sync All I/O to the filesystem should be done synchronously. In the case of media with a limited number of write cycles (e.g. some flash drives), sync ...
1
vote
1answer
249 views

sync vs async for images

I have to use ext4 image file in btrfs, because Dropbox requires ext4 as file system. In fstab mount options I've set async, but I'm not sure about this. What are the pros and cons of async and sync ...
2
votes
0answers
122 views

Does this sync call work as expected?

I'm writing a file (let's call it, xyz.bin) to a USB Flash drive... the flash drive mounts under the path: /media/myUsb ... In order to prevent data loss, I'm doing a sync command like this: sync -f ...
-4
votes
1answer
168 views

How does echoing an echo not just echo in a cronjob?

I'm reading this article on clearing buffer/cache from my new Linux VMs since they're taking a full 1/3rd of my RAM, so I ran this: sync; echo 1 > /proc/sys/vm/drop_caches This immediately fixed ...
0
votes
1answer
72 views

How to sync computers

I would like to have my desktop and my laptop synced i.e all programs and files should be at both places. Generally only one of the devices are active at any given time. It would be nice to be able to ...
0
votes
0answers
119 views

synchronizing data on two (or more) computers via USB

I use two computers. The data I need, i synchronize through rsync. Typically, when I come to the computer I issue: rsync -vuhzrXte ssh from_the_other_computer to_this_computer This works and I find ...
0
votes
0answers
25 views

sudo for rdist on AIX 6.1

I have a master-slave pair of AIX servers. Currently, the rdist via root user from master server is used to sync files between the two servers. I am struggling to replace root user with other remote ...
0
votes
1answer
73 views

Is it possible to customize Dconf's file storing path?

Is it possible to customize Dconf's file storing path? I'd like to store Dconf configuration file in one of my synced directory, like Google-Drive/Dropbox or any other for constant syncing. Let's ...
0
votes
1answer
52 views

Automatically keep 2 files in sync

Is there any way to have 2 files of the same name in different folders, and any time a change is made to one of the files, the same change is automatically implemented in the other?
0
votes
1answer
382 views

How to sync email contacts between computers for use in mutt?

I'm using mutt as email client. Specifically, this is my setup: Mail is stored at a remote hosting company. Mail is retrieved locally using OfflineIMAP. I have two mail accounts: one personal and one ...
0
votes
1answer
728 views

Check if a file has been properly transmitted via FTP

This script will send a file via FTP and then delete it. But, sometimes, the file is deleted before the transmission ends, and then an empty file is received. #!/bin/bash tar czf <sourcefile> -...
0
votes
1answer
617 views

data sync in a active-passive pacemaker cluster

I'm planning to use pacemaker with corosync and pcs to provide HA in a active-passive cluster for our two front end servers serving a perl application. I have configured resources for the service IP, ...