Download the PHP package thesaturn/c14-backup-tool without Composer

On this page you can find all versions of the php package thesaturn/c14-backup-tool. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package c14-backup-tool

C14 Backup Tool

Backup tool for cheap C14 storage provided by online.net. Support encryption, diff backups and backup rotation. Description and prices here: https://www.online.net/en/c14.

Описание на русском

Inspired by BackInTime

Features

Requirements

PHP >= 5.6

rsync

encfs (+encfstools)

sshfs

ssh

ssh-keygen

Optional dependence

cron

composer

fabiang/xmpp

Installation

Without xmpp logs and composer

If you want get logs by xmpp:

Terminology

C14 — Storage type

Safe — Name of archives group in C14

Archive — Contains your files

Configuring

All possible options described in config.example.php. Below some tips

Usage

Command line usage: php /path/to/main.php profileName

  1. Register to online.net
  2. Add your debit/credit card
  3. Generate ssh keys (if you don't have them) ssh-keygen
  4. Edit config.php as you like
  5. Test your configuration
  6. Add backup tool to cron
  7. Time to time look through archives in safe lists to check size of archives

    Notices

    • Diff backups created only in one archive. So you can always delete any archive without corrupting others
    • Storage API is a quite slow and not stable. That is why code try several times to do operations and have sleep() function to wait, while operations will be applied.
    • Archive creates for 7 days, but tool make backups only for 6 days since archive created.
    • Encfs config file also copied to archive. So you don't need to save it somewhere else.
    • If all rotation options is to false, all backups will be saved.
    • If encryption enabled, exclude working with only absolute paths, regex is not available

Not implemented yet

Algorithm

  1. Send a message about backup starting "Backup started for safe"
  2. Find a safe with safe name (set up in config)
  3. Find an archive in the safe to store backups
  4. Create necessary folders
  5. Mount encfs (encrypted view of the root FS)
  6. Encrypt included and excluded file names (for rsync)
  7. Mount the archive (sshfs)
  8. Clean up backup_temp folder (if last backup was unsuccessful)
  9. Copy hard links from the last backup folder
  10. Send the message "YAY! The real backuping is starting!"
  11. rsync
  12. rename backup_temp to C14ABT/$date
  13. Write date of successful backup to description of the archive
  14. Send "Backup success."
  15. Unmount sshfs and encfs

All versions of c14-backup-tool with dependencies

PHP Build Version
Package Version
Requires fabiang/xmpp Version *
thesaturn/xmpplogger Version 1.0.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package thesaturn/c14-backup-tool contains the following files

Loading the files please wait ....