BackupPcCli

De Cliss XXI
Révision datée du 20 décembre 2016 à 14:47 par imported>VincentAdolphe (a déplacé ImportBackuppc vers BackupPcCli)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Sauter à la navigation Sauter à la recherche

Commandes pour le demon backuppc:

Run/schedule a backup on a single host.

    BackupPC_serverMesg backup HOSTIP HOST USER 0/1

schedule backup for a host now. 0/1 0 incremental backup, 1 full
backup. E.G.

   /usr/share/backuppc/bin/BackupPC_serverMesg backup host.example.tld 
host.example.tld backuppc 1

The syntax to get status for a single host is:

    BackupPC_serverMesg 'status host(mail.test.com)'

Run (schedule really) nightly cleanup

    BackupPC_serverMesg BackupPC_nightly run

Dump some info. Pipe to perltidy as it is a nested data structure.
Not sure what it's actually dumping or how to use it or glean info
from it.

  BackupPC_serverMesg status info

Dump currently running (and maybe scheduled??) jobs. Looks like an
associative array with the keys set to the hostname or other service
jobs like " trashClean". Again useful to pipe through perltidy.

  BackupPC_serverMesg status jobs


List status of each host. State field will tell you if the host is
idle, backup is in progress...

  BackupPC_serverMesg status hosts

Start scheduling backups for all hosts

  BackupPC_serverMesg backup all



Stop/delay backups 

    BackupPC_serverMesg stop HOST REQ_USER BACKOFF

HOST is the host to cancel, REQ_USER is the requesting user (just for
log purposes) and BACKOFF is the backoff time in hours.