Jump to content

hi all! i'm fairly new to robocopy, i'm using it to backup my files to a google drive using "raidrive" to mount the google drive on my PC as a network disk for faster operations, everything worked more then fine with my bat files for basic uploads! now i have a HUGE problem (and a consequential HUGE HEADACHE) trying to understand how to make an incremental backup since i'm sharing a folder with 2 of my PCs. what i'm doing is basically this:

1. PC1 (my laptop) has some files i need in PC2 (my desktop where i edit)
2. PC1 backups the files to a google drive folder that will be shared with PC2
3. PC2 downloads that specific shared folder, uses the files in it and ADD files to the downloaded local folder 
4. PC2 then UPLOADS the updated folder from local to google drive
5. PC1 will NOT download the shared folder with all the updates cause it has low HDD capacity and it don't need the edited files
6. if i need to upload files to that folder with PC1, the missing files that don't exist in PC1 source will be deleted and i don't want this to happen.

the extensions inside the UPLOAD files right now are: /mir /xo /fft, this allow me to skip files that haven't been modified allowing me to save a ton of time.  

what i need to add is "don't delete the files that are NOT present in the source folder but just add the new files"... anyone can please help me? ^^" 

                   -`                    y0ur5h4d0w@Darkness
                  .o+`                   ------------------- 
                 `ooo/                   OS: Arch Linux x86_64 
                `+oooo:                  Host: Darkness
               `+oooooo:                 Kernel: Latest  
               -+oooooo+:                Packages: Only what i need to keep it simple
             `/:-:++oooo+:               Shell: ZSH
            `/++++/+++++++:              Main Monitor: LG Ultragear LG 27GS85Q 
           `/++++++++++++++:             Secondary Monitor: Asus MG28UQ
          `/+++ooooooooooooo/`           DE: Plasma Always Bleeding Edge  
         ./ooosssso++osssssso+`          WM: kwin 
        .oossssso-````/ossssss+`         Theme: Breeze-Dark [GTK2], Breeze [GTK3] 
       -osssssso.      :ssssssso.        Icons: Breeze-dark [GTK2/3] 
      :osssssss/        osssso+++.       Terminal: Kitty 
     /ossssssss/        +ssssooo/-       Terminal Font: Noto Color Emoji 17 FreeMono 13 
   `/ossssso+/:-        -:/+osssso+-     CPU: AMD Ryzen 7 9800X3D (16) @ 5.307GHz 
  `+sso+:-`                 `.-/+oso:    GPU: AMD ATI Radeon RX 7800 XT 
 `++:.                           `-/+/   GPU: AMD ATI Radeon Graphics 
 .`                                 `/   Memory: 61830MiB 

 

Link to comment
https://linustechtips.com/topic/1217171-robocopy-for-incremental-backup/
Share on other sites

Link to post
Share on other sites

9 minutes ago, adm0n said:

I have not used robocopy that much, but wouldn't the /XX command do that?
 

IT WORKS! thanks for the help :D 

                   -`                    y0ur5h4d0w@Darkness
                  .o+`                   ------------------- 
                 `ooo/                   OS: Arch Linux x86_64 
                `+oooo:                  Host: Darkness
               `+oooooo:                 Kernel: Latest  
               -+oooooo+:                Packages: Only what i need to keep it simple
             `/:-:++oooo+:               Shell: ZSH
            `/++++/+++++++:              Main Monitor: LG Ultragear LG 27GS85Q 
           `/++++++++++++++:             Secondary Monitor: Asus MG28UQ
          `/+++ooooooooooooo/`           DE: Plasma Always Bleeding Edge  
         ./ooosssso++osssssso+`          WM: kwin 
        .oossssso-````/ossssss+`         Theme: Breeze-Dark [GTK2], Breeze [GTK3] 
       -osssssso.      :ssssssso.        Icons: Breeze-dark [GTK2/3] 
      :osssssss/        osssso+++.       Terminal: Kitty 
     /ossssssss/        +ssssooo/-       Terminal Font: Noto Color Emoji 17 FreeMono 13 
   `/ossssso+/:-        -:/+osssso+-     CPU: AMD Ryzen 7 9800X3D (16) @ 5.307GHz 
  `+sso+:-`                 `.-/+oso:    GPU: AMD ATI Radeon RX 7800 XT 
 `++:.                           `-/+/   GPU: AMD ATI Radeon Graphics 
 .`                                 `/   Memory: 61830MiB 

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×