Skip to content

Backupd - daemon that watches for changes to files and directories in the file system of unix systems. Once the file has been modified, it is copied

Notifications You must be signed in to change notification settings

Ya-Pasha-364shy/Backupd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backupd 2023

Автор/Autor

Pavel Chernov (K1rch)

Описание/Description

ru: Backupd - это демон, производящий резервное копирование любых файлов, которые были как-либо изменены в указанной директории или субдериктории указанной директории. Резервное копирование производится сразу после внесения изменения в файл (после сигнала CTRL+S, например).

Исключение для копирования - скрытые файлы, они игнорируются.

en: Backupd is a daemon that backups any files that have been modified in any way in the specified directory or subdirectory of the specified directories. A backup is made immediately after the change is made. to a file (after the CTRL+S signal, for example).

The exception for copying is hidden files, they are ignored.

Сборка и установка/Assembly and installation

ru:

  1. Выполните клонирование репозитория
git clone git@github.com:K0001rch/backupd.git
  1. Запустите сборку make
make

ВНИМАНИЕ: От Вас потребуются права root, чтобы интегрировать демона в свою систему !

  1. Запустите демона через systemctl
systemctl start BackupPJ.service
  1. Проверьте, что демон заработал
systemctl status BackupPJ.service
Теперь все файлы, которые были как-либо изменены в директории указанной в конфигурационном файле (path_to_dir) или её субдиректории будут скопированы в директорию, указанную в path_to_backup с сохранением имени файла. Все лог-сообщения будут сохранены в директорию, указанную в параметре path_to_log.
  1. Остановите работу демона
systemctl kill -s 2 BackupPJ.service

Таким образом демон остановится по сигналу SIGINT без утечек памяти.

en:

  1. Clone the repo
git clone git@github.com:K0001rch/backupd.git
  1. Run build make
make

ATTENTION: You will need root privileges to integrate the daemon into your system!

  1. Start the daemon via systemctl
systemctl start BackupPJ.service
  1. Check that the daemon is running
systemctl status BackupPJ.service
Now all files that have been modified in any way in the directory specified in the configuration file (path_to_dir) or its subdirectory will be copied to the directory specified in path_to_backup with saving the filename. All log messages will be saved to the directory specified in the parameter path_to_log.
  1. Stop the daemon
systemctl kill -s 2 BackupPJ.service

This way the daemon will stop on SIGINT signal without memory leaks.

Дополнительно/Additionally

ru: Если вы хотите сделать замечание, исправить найденный баг, сделать задачу из списка TODO, разбросанных по коду - делайте merge-request. Названия ветки давайте таким образом: bugfix-1.1 (если это первый найденный баг за проект), аналогично с фичами и модификациями (первое число - версия проекта, второе - номер исправленного бага, в данном случае).

Аналогично с фичами и модификациями: feature-1.2 enhancement-1.3

en: If you want to make a remark, fix a found bug, make a task from the TODO list scattered throughout the code - make a merge request. Let's name the branch like this: bugfix-1.1 (if this is the first bug found for the project), similarly with features and modifications (the first number is the project version, the second is the number of the fixed bug, in this case).

Similarly with features and modifications: feature-1.2 enhancement-1.3

Контактная информация/Contact info

ru: Используйте телеграмм, для связи со мной. Ссылка на телеграм в профиле

en: Use telegram to contact me. Telegram link in profile

About

Backupd - daemon that watches for changes to files and directories in the file system of unix systems. Once the file has been modified, it is copied

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published