How can I backup all my Google Photos / Google Drive automatically on linux?












0















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.










share|improve this question



























    0















    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.










    share|improve this question

























      0












      0








      0


      2






      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.










      share|improve this question














      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 2 '18 at 16:38









      djsmiley2kdjsmiley2k

      5,13412336




      5,13412336






















          1 Answer
          1






          active

          oldest

          votes


















          1














          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:


          Google Photos folder within Root Folder




          • 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.


          Old Google Photos link




          • 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.






          share|improve this answer


























          • 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











          • 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











          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
          });


          }
          });














          draft saved

          draft discarded


















          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









          1














          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:


          Google Photos folder within Root Folder




          • 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.


          Old Google Photos link




          • 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.






          share|improve this answer


























          • 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











          • 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
















          1














          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:


          Google Photos folder within Root Folder




          • 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.


          Old Google Photos link




          • 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.






          share|improve this answer


























          • 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











          • 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














          1












          1








          1







          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:


          Google Photos folder within Root Folder




          • 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.


          Old Google Photos link




          • 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.






          share|improve this answer















          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:


          Google Photos folder within Root Folder




          • 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.


          Old Google Photos link




          • 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.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jan 27 at 6:29









          Community

          1




          1










          answered Mar 2 '18 at 16:47









          djsmiley2kdjsmiley2k

          5,13412336




          5,13412336













          • 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











          • 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











          • @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


















          draft saved

          draft discarded




















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          Plaza Victoria

          Puebla de Zaragoza

          Musa