Giter Site home page Giter Site logo

wiefunkdai / shelllinuxautobackupfile Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 17 KB

A simple helper script to backup all file and directory in GNU/Linux

Home Page: https://stephanusdai.web.id/2022/03/fedora-3x-backup-mysql-firebird-any.html

License: BSD 3-Clause "New" or "Revised" License

Shell 100.00%
autobackup backup backup-manager backup-script backup-solutions backup-tool bash-script fedora fedora-scripts linux

shelllinuxautobackupfile's Introduction

Stephanus Dai

ShellLinuxAutoBackupFile

A simple helper script to backup all file and directory in GNU/Linux

GitHub watchers GitHub Repo stars GitHub forks GitHub contributors GitHub pull requests GitHub issues GitHub Discussions GitHub last commit (by committer)

Guide · Report Bug · Request Feature · Provide Feedback · Ask Question

Love the project? Please consider donating or give ⭐ to help it improve!

Copyright © ID 2023 Stephanus Bagus Saputra (www.stephanusdai.web.id)
All rights reserved.


Use Bash Shell Script Linux Guidelines

Feature:

  1. Backup All Directory and File Path Selection
  2. Backup Firebird/MySQL Database File
  3. Auto Backup File with Schedule (Crontask) Linux

How to install:

Copy and paste this commands to your terminal:

  1. cd /tmp
  2. git clone https://github.com/wiefunkdai/ShellLinuxAutoBackupFile.git
  3. cd ShellLinuxAutoBackupFile
  4. sudo mkdir /opt/auto-backup
  5. sudo cp bin/runner.sh /opt/auto-backup/runner.sh
  6. cd /opt/auto-backup
  7. sudo chmod +x runner.sh
  8. sudo chown root:root runner.sh

Preparation:

Before continue, please open and edit this script according to your needs to your terminal:

sudo vi /opt/auto-backup/runner.sh

edit bellow script according to your needs:

import1="0,(change with file source folder location)"

dirforsave="(change with the location of the backup folder)"

usersql=(username mysql)

userpass=(kata sandi mysql)

dbmysqlname="(nama database mysql)"

dirsavedsql="(mysql database backup folder location)"

dirfirebirdimport="(change with firebird database folder source location)"

dirfirebirdsaved="(change with the location of the firebird database backup folder)"

fbuser="(change with firebird database login name in here)"

fbpass="(change with database password in here)"

Create New Task Schedule for running script crontask.sh:

Copy and paste this commands to your terminal:

sudo vi /etc/crontab

End then insert bellow code at crontab window:

00 00 * * * root /usr/bin/sh /opt/auto-backup/runner.sh > /tmp/crond-auto-backup.log

At midnight, the computer will automatically back up your data.

Preview of Crontask:

preview

Support the project

I open-source almost everything I can and try to reply to everyone needing help using these projects. Obviously, this takes time. You can use this service for free.

If you are using this project and are happy with it or just want to encourage me to continue creating stuff, there are a few ways you can do it:

  • Giving proper credit on the GitHub Sponsors page. Static Badge
  • Starring and sharing the project ⭐
  • You can make one-time donations via PayPal. I'll probably buy a coffee ☕ or tea 🍵 or cake 🍰
    paypal.me/wiefunkdai
  • It’s also possible to support mine financially by becoming a backer or sponsor through
    opencollective.com/wiefunkdai

However, I am available for hire. You can also give me career opportunities to help your business in developing the software you need. Please contact me at:
wiefunk@stephanusdai.web.id t.me/wiefunkdai linkedin.com/in/wiefunkdai

🙏 Thanks for your contribute and support! 😍 ❤️

Any Questions & Other Supports? see Support please.

Author Description

@wiefunkdai

• Name : Stephanus Bagus Saputra ( 戴 Dai 偉 Wie 峯 Funk )
• Email : [email protected]
• Link : https://stephanusdai.web.id


Visit Website · Global Issues · Global Discussions · Global Wiki

Copyright © ID 2023 by Stephanus Bagus Saputra (www.stephanusdai.web.id)

All rights reserved.

shelllinuxautobackupfile's People

Contributors

wiefunkdai avatar

Stargazers

 avatar  avatar  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.