This is the backup agent for bakup.io
- Download
install.sh - Ensure you're logged in as the user that you would like the agent to run as
- Run
sudo ./install.sh [YOUR-CLIENT-ID] [YOUR-API-KEY]
-
Three configuration files must be created
mkdir -p /etc/opt/bakupagent touch /etc/opt/bakupagent/{USER_ID,CLIENT_ID,API_TOKEN} -
Populate
USER_IDwith the ID of the user you wish bakup agent to run under, then createCLIENT_IDandAPI_TOKENwith your Client ID and API Token, respectively.NOTE: Ensure that the
CLIENT_IDandAPI_TOKENfiles are writable by the user that will run the agent -
Copy the Bakup Agent and rclone binaries in to
/opt/bakupagent/. -
After making the binaries executable, you can start the agent -
./opt/bakupagent/bakupagentNOTE: The Bakup Agent can be run with the
-dargument to enable debug messages.
/
├── etc/
│ └── opt/
│ └── bakupagent/
│ ├── USER_ID
│ ├── CLIENT_ID
│ └── API_TOKEN
└── opt/
└── bakupagent/
├── bakupagent
└── rclone
To uninstall an agent from a server, you can either:
- Use Bakup.io to remove it remotely
- Run the uninstall script on the server manually using:
sudo ./opt/bakupagent/uninstall.sh
Both methods will inform Bakup that the agent has been removed from its server.