{"id":2044,"date":"2021-08-12T08:30:32","date_gmt":"2021-08-12T05:30:32","guid":{"rendered":"https:\/\/upcloud.com\/global\/us\/resources\/tutorials\/automate-upcloud-backups-using-simplebackups\/"},"modified":"2021-08-12T08:30:32","modified_gmt":"2021-08-12T05:30:32","slug":"automate-upcloud-backups-using-simplebackups","status":"publish","type":"tutorial","link":"https:\/\/upcloud.com\/global\/resources\/tutorials\/automate-upcloud-backups-using-simplebackups\/","title":{"rendered":"How to automate UpCloud backups using SimpleBackups"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/simplebackups.io\/\" target=\"_blank\" rel=\"noopener\">SimpleBackups<\/a> is an all-in-one website &amp; database backup automation service built for the cloud. It offers extensive support for databases such as MySQL, MongoDB and PostgreSQL as well as most cloud storage options. SimpleBackups also allows you to automate your Cloud Server backups on UpCloud.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Using SimpleBackups, you are able to take snapshots, automatically on your own terms. Whether you need to take backups daily, weekly, every couple of hours or on-demand, everything is possible using the SimpleBackups API. You will also have the option to choose the number of snapshots to keep on your provider to save on snapshot storage costs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To be able to utilise the services on both UpCloud and SimpleBackups, you will need to register on both. Begin by signing up for an account if you haven\u2019t yet.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Register on <strong><a href=\"https:\/\/my.simplebackups.io\/register\" target=\"_blank\" rel=\"noopener\">SimpleBackups<\/a><\/strong><\/li>\n\n\n\n<li>Sign up on <strong><a href=\"https:\/\/signup.upcloud.com\/\" target=\"_blank\" rel=\"noopener\"><span class=\"notion-enable-hover\" data-token-index=\"1\" data-reactroot=\"\">UpCloud<\/span><\/a><\/strong><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Now, let\u2019s get started!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1. Creating new UpCloud API credentials<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">SimpleBackups can integrate directly with your UpCloud account using the UpCloud API.&nbsp;To start, we will create unique API credentials on UpCloud that will allow us to automate UpCloud snapshots from the SimpleBackups dashboard.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">First, log in to your <a href=\"https:\/\/hub.upcloud.com\/people\/\" target=\"_blank\" rel=\"noopener\">UpCloud Control Panel<\/a> and head over to the <strong>People<\/strong> section.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In the People section, click the <strong>Add<\/strong> button<\/li>\n\n\n\n<li>Choose a <strong>username<\/strong> for the API account<\/li>\n\n\n\n<li>Enter the <strong>contact details<\/strong> for your API credentials<\/li>\n\n\n\n<li>Set the API <b>password <\/b>by&nbsp;default, the API account will have full permissions to any resources it creates but no access to existing servers or storage. You can grant additional permissions as needed using the server, storage, and tag access options.<\/li>\n\n\n\n<li>Under <strong>Permissions<\/strong> set&nbsp;<strong>API Connections<\/strong> to&nbsp;<strong>All addresses<\/strong>&nbsp;OR&nbsp;<a href=\"https:\/\/support.simplebackups.io\/en\/articles\/4522830-simplebackups-ip-addresses-firewall\" target=\"_blank\" rel=\"noopener\">whitelist all SimpleBackups IP<\/a> by selecting \u2018Address range\u2019<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/upcloud.com\/media\/1-simplebackups-upcloud-api-credentials.png\" alt=\"Creating UpCloud API account for SimpleBackups\" class=\"wp-image-22150\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The <strong>API<\/strong> <strong>Username<\/strong>&nbsp;and&nbsp;<strong>Password<\/strong> are required for connecting your UpCloud account to SimpleBackups. This allows you to integrate services without sacrificing security by creating unique API credentials for each service that needs access to your UpCloud account.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">You can learn more at the guide for <a href=\"https:\/\/upcloud.com\/global\/docs\/guides\/getting-started-upcloud-api\/\" target=\"_blank\" rel=\"noreferrer noopener\">getting started with UpCloud API<\/a> .<\/p>\n<\/blockquote>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">Note that you cannot enable two-factor authentication on API accounts which is why APIs need to use their own credentials.<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">Next, log in to your SimpleBackups account, then head to the <a href=\"https:\/\/my.simplebackups.io\/\" target=\"_blank\" rel=\"noopener\">snapshot creation section<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2. Connecting your UpCloud account<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Let\u2019s now connect your UpCloud account to SimpleBackup. Log in to your <a href=\"https:\/\/my.simplebackups.io\/\" target=\"_blank\" rel=\"noopener\">SimpleBackups account<\/a>.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go to <a href=\"https:\/\/my.simplebackups.io\/\" target=\"_blank\" rel=\"noreferrer noopener\">Create Snapshot<\/a><\/li>\n\n\n\n<li>Click on <strong>Connect a new provider<\/strong> button<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Connect your UpCloud account<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Name<\/strong>: the name we\u2019ll use to identify your UpCloud account in SimpleBackups<\/li>\n\n\n\n<li><strong>User<\/strong>: your UpCloud API username<\/li>\n\n\n\n<li><strong>Password<\/strong>: your UpCloud API password<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/upcloud.com\/media\/2-simplebackups-upcloud-connect-account.png\" alt=\"Connecting UpCloud account on SimpleBackups\" class=\"wp-image-22146\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Choose your UpCloud account<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">From the list, choose the UpCloud account your Cloud Servers reside on. You may add as many UpCloud accounts as you need under your SimpleBackups account and manage all backups from a single dashboard.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Choose the UpCloud server or volume resource<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can choose either a Cloud Server under the <strong>Resource Type<\/strong> or a specific storage volume. The Resource dropdown will be populated by all the UpCloud resources accessible under your UpCloud API credentials.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3. Creating an UpCloud backup job<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Now that you\u2019ve connected your UpCloud account, you can finish creating the backup job. Continue with the next step.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Set the retention you need<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Define the backup <strong>Retention<\/strong>. This is the number of individual snapshots SimpleBackups will keep. When a maximum number of snapshots already exists, taking a new snapshot will automatically prune the oldest one on the list.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Save the snapshot backup job<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Finally, give your snapshot backup job a friendly name you can recognise it by.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then click the <strong>Create Snapshot<\/strong>&nbsp;button.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/upcloud.com\/media\/3-simplebackups-upcloud-create-snapshot.png\" alt=\"Creating snapshot backup on UpCloud\" class=\"wp-image-22147\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Congratulations, you now have an automated UpCloud snapshot backup!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Run the backup job once manually using the <strong>Run<\/strong>&nbsp;snapshot button from the snapshots list. Running the job will trigger your first snapshot backup!<\/p>\n","protected":false},"author":56,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","community-category":[256,262,223],"class_list":["post-2044","tutorial","type-tutorial","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/upcloud.com\/global\/wp-json\/wp\/v2\/tutorial\/2044","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/upcloud.com\/global\/wp-json\/wp\/v2\/tutorial"}],"about":[{"href":"https:\/\/upcloud.com\/global\/wp-json\/wp\/v2\/types\/tutorial"}],"author":[{"embeddable":true,"href":"https:\/\/upcloud.com\/global\/wp-json\/wp\/v2\/users\/56"}],"replies":[{"embeddable":true,"href":"https:\/\/upcloud.com\/global\/wp-json\/wp\/v2\/comments?post=2044"}],"version-history":[{"count":0,"href":"https:\/\/upcloud.com\/global\/wp-json\/wp\/v2\/tutorial\/2044\/revisions"}],"wp:attachment":[{"href":"https:\/\/upcloud.com\/global\/wp-json\/wp\/v2\/media?parent=2044"}],"wp:term":[{"taxonomy":"community-category","embeddable":true,"href":"https:\/\/upcloud.com\/global\/wp-json\/wp\/v2\/community-category?post=2044"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}