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_ID
with the ID of the user you wish bakup agent to run under, then createCLIENT_ID
andAPI_TOKEN
with your Client ID and API Token, respectively.NOTE: Ensure that the
CLIENT_ID
andAPI_TOKEN
files 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/bakupagent
NOTE: The Bakup Agent can be run with the
-d
argument 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.