How can I backup all my Google Photos / Google Drive automatically on linux?
I have around 40Gb of photos in google photos, along with a lot of other stuff in google drive, which I'd like to back up automatically.
Right now I'm having to go into my profile and create a takeout, which has two issues.
- It's a manual process and I can't see how to automate it easily
- It provides the files in 10, 20 or 50Gb chunks, which I then have to extract and combine into the 'full backup'
I'd like to simply have something I can call via cron which takes a copy of all my google photos, and puts them into a folder somewhere.
linux backup google-photos
add a comment |
I have around 40Gb of photos in google photos, along with a lot of other stuff in google drive, which I'd like to back up automatically.
Right now I'm having to go into my profile and create a takeout, which has two issues.
- It's a manual process and I can't see how to automate it easily
- It provides the files in 10, 20 or 50Gb chunks, which I then have to extract and combine into the 'full backup'
I'd like to simply have something I can call via cron which takes a copy of all my google photos, and puts them into a folder somewhere.
linux backup google-photos
add a comment |
I have around 40Gb of photos in google photos, along with a lot of other stuff in google drive, which I'd like to back up automatically.
Right now I'm having to go into my profile and create a takeout, which has two issues.
- It's a manual process and I can't see how to automate it easily
- It provides the files in 10, 20 or 50Gb chunks, which I then have to extract and combine into the 'full backup'
I'd like to simply have something I can call via cron which takes a copy of all my google photos, and puts them into a folder somewhere.
linux backup google-photos
I have around 40Gb of photos in google photos, along with a lot of other stuff in google drive, which I'd like to back up automatically.
Right now I'm having to go into my profile and create a takeout, which has two issues.
- It's a manual process and I can't see how to automate it easily
- It provides the files in 10, 20 or 50Gb chunks, which I then have to extract and combine into the 'full backup'
I'd like to simply have something I can call via cron which takes a copy of all my google photos, and puts them into a folder somewhere.
linux backup google-photos
linux backup google-photos
asked Mar 2 '18 at 16:38
djsmiley2kdjsmiley2k
5,07112336
5,07112336
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Finally it seems google has fixed the Photos access from drive, so your google drive can now view all your google photos - for some users this was incredibly buggy before, sometimes not showing any photos, sometimes not showing some.
To make use of this:
- Go to https://drive.google.com/ and hit the 'cog' to open the settings. Eenable "Create a Google Photos folder", which creates a folder that'll appear in your root 'drive' folder. It looks like this:
- This now starts syncing your photos into a folder in your google drive, called 'Google Photos' - this is not the same as the 'Google Photos' which is listed below 'My Drive', 'My Computers' and so on.
- Once you've allowed this some time to sync, use rclone from https://github.com/ncw/rclone to pull down a copy of your Google Photos folder from your drive:
rclone copy --config /home/<user>/.rclone.cf GDrive:Google Photos/ ./googlePhotos/ ./googlePhotos/
/home/<user>/.rclone.conf
should be created using rclone config
at the command line and following the instructions.
Once completed, the rclone copy --config /home/<user>/.rclone.cf GDrive:Google Photos/ ./googlePhotos/
can be placed into a cronjob, or as part of a larger backup script. You can also set it to sync your whole google drive by using GDrive:
as the source instead, or use sync instead of copy to pull down all changes including deletions.
Does this still works? Because currently it appears that photos that I've uploaded in theGoogle Photos
folder are visible in Google Drive, but not in Google Photos :/
– J4N
Jul 19 '18 at 6:19
@J4N I don't know what happens if you do it the way you have - My photos upload automatically in Google Photos, and appear in drive - for a long time (over a year) this wasn't working at all, then suddenly one day it started working and I came up with the above solution.
– djsmiley2k
Jul 19 '18 at 8:10
This way it works, I see the pictures that are in GPhotos also in the drive, but if I add to the drive(which I taught that was what you were doing), doesn't work for me :/
– J4N
Jul 19 '18 at 8:24
No sorry, I only download from the 'normal' drive, not the special folder that appears on the left. I've added an image showing where the Google Photos folder should appear.
– djsmiley2k
Jul 19 '18 at 9:37
In my case, I was hopping to do the inverse of what requested the OP: Backup my pictures ON google photos, but doesnt work for now.
– J4N
Jul 19 '18 at 11:56
|
show 4 more comments
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1299888%2fhow-can-i-backup-all-my-google-photos-google-drive-automatically-on-linux%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Finally it seems google has fixed the Photos access from drive, so your google drive can now view all your google photos - for some users this was incredibly buggy before, sometimes not showing any photos, sometimes not showing some.
To make use of this:
- Go to https://drive.google.com/ and hit the 'cog' to open the settings. Eenable "Create a Google Photos folder", which creates a folder that'll appear in your root 'drive' folder. It looks like this:
- This now starts syncing your photos into a folder in your google drive, called 'Google Photos' - this is not the same as the 'Google Photos' which is listed below 'My Drive', 'My Computers' and so on.
- Once you've allowed this some time to sync, use rclone from https://github.com/ncw/rclone to pull down a copy of your Google Photos folder from your drive:
rclone copy --config /home/<user>/.rclone.cf GDrive:Google Photos/ ./googlePhotos/ ./googlePhotos/
/home/<user>/.rclone.conf
should be created using rclone config
at the command line and following the instructions.
Once completed, the rclone copy --config /home/<user>/.rclone.cf GDrive:Google Photos/ ./googlePhotos/
can be placed into a cronjob, or as part of a larger backup script. You can also set it to sync your whole google drive by using GDrive:
as the source instead, or use sync instead of copy to pull down all changes including deletions.
Does this still works? Because currently it appears that photos that I've uploaded in theGoogle Photos
folder are visible in Google Drive, but not in Google Photos :/
– J4N
Jul 19 '18 at 6:19
@J4N I don't know what happens if you do it the way you have - My photos upload automatically in Google Photos, and appear in drive - for a long time (over a year) this wasn't working at all, then suddenly one day it started working and I came up with the above solution.
– djsmiley2k
Jul 19 '18 at 8:10
This way it works, I see the pictures that are in GPhotos also in the drive, but if I add to the drive(which I taught that was what you were doing), doesn't work for me :/
– J4N
Jul 19 '18 at 8:24
No sorry, I only download from the 'normal' drive, not the special folder that appears on the left. I've added an image showing where the Google Photos folder should appear.
– djsmiley2k
Jul 19 '18 at 9:37
In my case, I was hopping to do the inverse of what requested the OP: Backup my pictures ON google photos, but doesnt work for now.
– J4N
Jul 19 '18 at 11:56
|
show 4 more comments
Finally it seems google has fixed the Photos access from drive, so your google drive can now view all your google photos - for some users this was incredibly buggy before, sometimes not showing any photos, sometimes not showing some.
To make use of this:
- Go to https://drive.google.com/ and hit the 'cog' to open the settings. Eenable "Create a Google Photos folder", which creates a folder that'll appear in your root 'drive' folder. It looks like this:
- This now starts syncing your photos into a folder in your google drive, called 'Google Photos' - this is not the same as the 'Google Photos' which is listed below 'My Drive', 'My Computers' and so on.
- Once you've allowed this some time to sync, use rclone from https://github.com/ncw/rclone to pull down a copy of your Google Photos folder from your drive:
rclone copy --config /home/<user>/.rclone.cf GDrive:Google Photos/ ./googlePhotos/ ./googlePhotos/
/home/<user>/.rclone.conf
should be created using rclone config
at the command line and following the instructions.
Once completed, the rclone copy --config /home/<user>/.rclone.cf GDrive:Google Photos/ ./googlePhotos/
can be placed into a cronjob, or as part of a larger backup script. You can also set it to sync your whole google drive by using GDrive:
as the source instead, or use sync instead of copy to pull down all changes including deletions.
Does this still works? Because currently it appears that photos that I've uploaded in theGoogle Photos
folder are visible in Google Drive, but not in Google Photos :/
– J4N
Jul 19 '18 at 6:19
@J4N I don't know what happens if you do it the way you have - My photos upload automatically in Google Photos, and appear in drive - for a long time (over a year) this wasn't working at all, then suddenly one day it started working and I came up with the above solution.
– djsmiley2k
Jul 19 '18 at 8:10
This way it works, I see the pictures that are in GPhotos also in the drive, but if I add to the drive(which I taught that was what you were doing), doesn't work for me :/
– J4N
Jul 19 '18 at 8:24
No sorry, I only download from the 'normal' drive, not the special folder that appears on the left. I've added an image showing where the Google Photos folder should appear.
– djsmiley2k
Jul 19 '18 at 9:37
In my case, I was hopping to do the inverse of what requested the OP: Backup my pictures ON google photos, but doesnt work for now.
– J4N
Jul 19 '18 at 11:56
|
show 4 more comments
Finally it seems google has fixed the Photos access from drive, so your google drive can now view all your google photos - for some users this was incredibly buggy before, sometimes not showing any photos, sometimes not showing some.
To make use of this:
- Go to https://drive.google.com/ and hit the 'cog' to open the settings. Eenable "Create a Google Photos folder", which creates a folder that'll appear in your root 'drive' folder. It looks like this:
- This now starts syncing your photos into a folder in your google drive, called 'Google Photos' - this is not the same as the 'Google Photos' which is listed below 'My Drive', 'My Computers' and so on.
- Once you've allowed this some time to sync, use rclone from https://github.com/ncw/rclone to pull down a copy of your Google Photos folder from your drive:
rclone copy --config /home/<user>/.rclone.cf GDrive:Google Photos/ ./googlePhotos/ ./googlePhotos/
/home/<user>/.rclone.conf
should be created using rclone config
at the command line and following the instructions.
Once completed, the rclone copy --config /home/<user>/.rclone.cf GDrive:Google Photos/ ./googlePhotos/
can be placed into a cronjob, or as part of a larger backup script. You can also set it to sync your whole google drive by using GDrive:
as the source instead, or use sync instead of copy to pull down all changes including deletions.
Finally it seems google has fixed the Photos access from drive, so your google drive can now view all your google photos - for some users this was incredibly buggy before, sometimes not showing any photos, sometimes not showing some.
To make use of this:
- Go to https://drive.google.com/ and hit the 'cog' to open the settings. Eenable "Create a Google Photos folder", which creates a folder that'll appear in your root 'drive' folder. It looks like this:
- This now starts syncing your photos into a folder in your google drive, called 'Google Photos' - this is not the same as the 'Google Photos' which is listed below 'My Drive', 'My Computers' and so on.
- Once you've allowed this some time to sync, use rclone from https://github.com/ncw/rclone to pull down a copy of your Google Photos folder from your drive:
rclone copy --config /home/<user>/.rclone.cf GDrive:Google Photos/ ./googlePhotos/ ./googlePhotos/
/home/<user>/.rclone.conf
should be created using rclone config
at the command line and following the instructions.
Once completed, the rclone copy --config /home/<user>/.rclone.cf GDrive:Google Photos/ ./googlePhotos/
can be placed into a cronjob, or as part of a larger backup script. You can also set it to sync your whole google drive by using GDrive:
as the source instead, or use sync instead of copy to pull down all changes including deletions.
edited Jan 27 at 6:29
Community♦
1
1
answered Mar 2 '18 at 16:47
djsmiley2kdjsmiley2k
5,07112336
5,07112336
Does this still works? Because currently it appears that photos that I've uploaded in theGoogle Photos
folder are visible in Google Drive, but not in Google Photos :/
– J4N
Jul 19 '18 at 6:19
@J4N I don't know what happens if you do it the way you have - My photos upload automatically in Google Photos, and appear in drive - for a long time (over a year) this wasn't working at all, then suddenly one day it started working and I came up with the above solution.
– djsmiley2k
Jul 19 '18 at 8:10
This way it works, I see the pictures that are in GPhotos also in the drive, but if I add to the drive(which I taught that was what you were doing), doesn't work for me :/
– J4N
Jul 19 '18 at 8:24
No sorry, I only download from the 'normal' drive, not the special folder that appears on the left. I've added an image showing where the Google Photos folder should appear.
– djsmiley2k
Jul 19 '18 at 9:37
In my case, I was hopping to do the inverse of what requested the OP: Backup my pictures ON google photos, but doesnt work for now.
– J4N
Jul 19 '18 at 11:56
|
show 4 more comments
Does this still works? Because currently it appears that photos that I've uploaded in theGoogle Photos
folder are visible in Google Drive, but not in Google Photos :/
– J4N
Jul 19 '18 at 6:19
@J4N I don't know what happens if you do it the way you have - My photos upload automatically in Google Photos, and appear in drive - for a long time (over a year) this wasn't working at all, then suddenly one day it started working and I came up with the above solution.
– djsmiley2k
Jul 19 '18 at 8:10
This way it works, I see the pictures that are in GPhotos also in the drive, but if I add to the drive(which I taught that was what you were doing), doesn't work for me :/
– J4N
Jul 19 '18 at 8:24
No sorry, I only download from the 'normal' drive, not the special folder that appears on the left. I've added an image showing where the Google Photos folder should appear.
– djsmiley2k
Jul 19 '18 at 9:37
In my case, I was hopping to do the inverse of what requested the OP: Backup my pictures ON google photos, but doesnt work for now.
– J4N
Jul 19 '18 at 11:56
Does this still works? Because currently it appears that photos that I've uploaded in the
Google Photos
folder are visible in Google Drive, but not in Google Photos :/– J4N
Jul 19 '18 at 6:19
Does this still works? Because currently it appears that photos that I've uploaded in the
Google Photos
folder are visible in Google Drive, but not in Google Photos :/– J4N
Jul 19 '18 at 6:19
@J4N I don't know what happens if you do it the way you have - My photos upload automatically in Google Photos, and appear in drive - for a long time (over a year) this wasn't working at all, then suddenly one day it started working and I came up with the above solution.
– djsmiley2k
Jul 19 '18 at 8:10
@J4N I don't know what happens if you do it the way you have - My photos upload automatically in Google Photos, and appear in drive - for a long time (over a year) this wasn't working at all, then suddenly one day it started working and I came up with the above solution.
– djsmiley2k
Jul 19 '18 at 8:10
This way it works, I see the pictures that are in GPhotos also in the drive, but if I add to the drive(which I taught that was what you were doing), doesn't work for me :/
– J4N
Jul 19 '18 at 8:24
This way it works, I see the pictures that are in GPhotos also in the drive, but if I add to the drive(which I taught that was what you were doing), doesn't work for me :/
– J4N
Jul 19 '18 at 8:24
No sorry, I only download from the 'normal' drive, not the special folder that appears on the left. I've added an image showing where the Google Photos folder should appear.
– djsmiley2k
Jul 19 '18 at 9:37
No sorry, I only download from the 'normal' drive, not the special folder that appears on the left. I've added an image showing where the Google Photos folder should appear.
– djsmiley2k
Jul 19 '18 at 9:37
In my case, I was hopping to do the inverse of what requested the OP: Backup my pictures ON google photos, but doesnt work for now.
– J4N
Jul 19 '18 at 11:56
In my case, I was hopping to do the inverse of what requested the OP: Backup my pictures ON google photos, but doesnt work for now.
– J4N
Jul 19 '18 at 11:56
|
show 4 more comments
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1299888%2fhow-can-i-backup-all-my-google-photos-google-drive-automatically-on-linux%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown