GithubHelp home page GithubHelp logo

rsync_backup_service's Introduction

Rsync自動バックアップスクリプト群

注意 シンボリックリンクは無視され、実体がコピーされます。

動作要件(動作確認済環境)

rootユーザーOnlyでの動作を想定

  1. rsync (3.2.7-0ubuntu0.22.04.2 amd64)
  2. systemd (249.11-0ubuntu3.11 amd64)
  3. bash (5.1-6ubuntu1.1 amd64)

初期設定

バックアップ先とバックアップ元の指定

./src/rsync_backup.sh 内の「各変数定義」セクション内で定義されている「SAVEDIR」と「TARGETDIR」の内容を、適時書き換えて下さい。

############################################
################# 各変数定義 ################
############################################

#バックアップ先のディレクトリ
SAVEDIR= バックアップ先ディレクトリ

#バックアップ元のディレクトリ
TARGETDIR= バックアップ元ディレクトリ

インストール

動作要件が満たされている事を確認した上で、以下のコマンドを実行して下さい。

sudo bash rsync_install.sh

アンインストール

以下のコマンドを実行すると、"インストール"で実行された内容を綺麗さっぱり削除してアンインストールできます。

sudo bash rsync_uninstall.sh

ディレクトリ構造

.
├── README.md           # りーどみぃい
├── rsync_install.sh    # サービスインストール用スクリプト
├── rsync_uninstall.sh  # サービスアンインストール用スクリプト
└── src
    ├── rsync_backup.service    # サービスファイル
    ├── rsync_backup.timer      # サービストリガー
    └── rsync_backup.sh         # バックアップスクリプト

rsync_backup_service's People

Contributors

noli-noli avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.