Giter Club home page Giter Club logo

backup-mac-to-smb's Introduction

Configuring the script variables

Variables to be adjusted in bmtsmb.sh:

backupdir:         The source directory for the backup
mntpnt:            A location where the share can be mounted
share:             Path of the SMB share in "//username@servername/path" format
server:            The fqdn of the share server

Variables to be adjusted in local.bmtsmb.plist:

ProgramArguments:  The path where the script is located
StartInterval:     Interval in seconds for the script to be run
StandardErrorPath,
StandardOutPath:   A path/file where the output log can be written to. The job
                   needs to be run as the smb user which is likely not root, so
                   /var/log cannot be used due to missing permissions

Running the backup job with launchd

Copy the script into the LaunchAgents directory:

cp local.bmtsmb.plist ~/Library/LaunchAgents

Use lauchctl to activate, list or deactivate the job:

launchctl load -w ~/Library/LaunchAgents/local.bmtsmb.plist
launchctl list | grep bmtsmb
launchctl unload ~/Library/LaunchAgents/local.bmtsmb.plist

backup-mac-to-smb's People

Contributors

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