Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
20 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
18 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
34 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
7 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
47 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
22 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
56 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
12 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
68 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
33 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
36 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
50 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
41 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
38 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, ...
1
vote
1answer
130 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 ...
0
votes
1answer
41 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
90 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
236 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
346 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
105 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
56 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
60 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
133 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
109 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
146 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
20 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
80 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
297 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 ...
0
votes
1answer
318 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
202 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
98 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
151 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
62 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
112 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
0answers
22 views

excluding huge files when using git tracking of dot-files

For backuping and sharing dotfiles, I've created an git-repository in ~ with the following content in my .gitignore file: #.gitignore * Now, when I want to track something, I do for example an add ...
0
votes
1answer
65 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
47 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
340 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
505 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
512 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, ...
0
votes
3answers
200 views

How do I sync two ubuntu folders which are in different servers configured in aws? [duplicate]

I have set up 2 ubuntu instances in aws. How do I sync /usr/ubuntu in both the machines?
1
vote
1answer
36 views

Clone ownership and group of coincident name files and folders between two servers

I need to sync only ownership and group of each file and dir between two server filesystems. That's to say if I have server A and server B, I don't need and don't want to copy data from one server to ...
2
votes
1answer
204 views

How to transfer a part of a file from remote system via SCP?

I am trying to fetch a log file which is repeatedly updated. I want that updated file, but don't want to download the entire file again and again from the remote system via SCP. Any idea to achieve ...
2
votes
3answers
578 views

tar directory to send only modified blocks of files

Deep and complex directory structure can be modified: files can be moved (prefix changed) and simultaneously content of the files can be changed partially. I want to decrease an amount of data to ...
1
vote
0answers
298 views

How to synchronize files differing only in xattr

I am using rsync to synchronize my files but I have come to a problem when in source I add some tags (or in general probably modify xattrs) to the file, no other changes and it seems that this does ...
6
votes
2answers
6k views

Chrony 3.1 refuses to sync with ntp server

I have 70 machine with CentOS 7.2 and chrony version 2.1.1 syncing perfect with my NTP server protocol v3. Recently I added 30 machines with CentOS 7.4 and chrony version 3.1, but these 30 machines ...
2
votes
0answers
310 views

btrfs sync and deferred operations - is the special ioctl required?

I am periodically getting kernel errors on my external HDD btrfs filesystem. I use btrbk to backup snapshots to my external HDD, and the errors relate to subvolumes. I'm meticulously unmounting the ...
0
votes
1answer
1k views

How to copy files and folders from a usb ntfs filesystem to internal ext4 without importing permissions?

I have a USB disk that I use to synchronize data between computers with different operating systems (currently using a nice GUI utility called FreeFileSync), and its format is NTFS (which is ...