agherzan / syncit

Sync files, directories or the entire file-system with durability in mind

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

syncit

This small tool provides the ability to sync files or directories while ensuring durability.

It supports:

  • sync to disk a file or a directory while making sure the parent directory is fsync'ed too
  • sync to disk all the buffered modifications
  • sync to disk the filesystem on which a specific file resides

Install

Do you like Arch Linux? You're in luck: https://aur.archlinux.org/packages/syncit/ . Cheers to <gergely [at] imreh [dot] net>!

Otherwise:

make
make install

How to use

When ran without file argument it will behave as a normal sync. When a file argument is provided the tool will fsync the file (which can be a directory too) and the parent directory to ensure durability of data. When -f option is used, it will sync the entire filesystem the specified file resides on.

Check help:

syncit --help

Contributions

Want to contribute? Great! Throw pull requests at us.

About

Sync files, directories or the entire file-system with durability in mind

License:Apache License 2.0


Languages

Language:C 73.2%Language:Makefile 19.8%Language:C++ 7.0%