V
V
Vitya Podpriklopolny2019-02-03 13:18:07
Google Drive
Vitya Podpriklopolny, 2019-02-03 13:18:07

Gitignore for google drive?

Good afternoon!
I store all my projects in google drive and I want google drive not to upload certain subfolders,
for example, the working folder WORK in it PROJECT and there node-modules
everything needs to be loaded except node-modules
How to do this?
help me please

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrey, 2019-02-03
@megamage

This is a bad decision. Yuzal did it about 10 years ago with dropbox and refused. main problems:
1. Files are constantly uploaded, loads the processor and once again pulls the hard drive
2. Conflicts are possible (the file did not have time to upload and has already changed)
3. The problem you described with node_modules
Solution:
1. I realized that such synchronization is unnecessary
2. It is on a removable disk dropbox where the WORK directory is synchronized daily without all the superfluous .git node_modules build
all this is done by a simple bat file tucked into the task scheduler

set source_folder=D:\Projects
set backup_folder=G:\Dropbox\Projects_backup
set ignore=node_modules .git build

echo Source: %source_folder%
echo Destination: %backup_folder%
robocopy.exe %source_folder% %backup_folder% /XD %ignore% /MIR /XJ /FFT /njh /ndl /nc /ns /R:2 /W:5

Plus, every half a year, closed projects fly away from the WORK directory to a distant backup

I
Ivan Shumov, 2019-02-03
@inoise

Can you finally master git for storing and transferring code?)

A
Alexander Ivanov, 2019-02-03
@oshliaer

You must use the correct service and application names to specify your requests. What is "google drive"?
There are several ways to work with Drive storage. For example,
Google Drive Backup & Sync
If you decide to use Google Drive Backup & Sync , you must supply a ready-made data package to the synchronization folder. There should be no links to files or temporary files. And also you must decide which branch of your repository (if any) should be in which folder. Copying from synchronization folders to working folders must be done in a strictly documented manner to avoid errors. Most often, scripts for the console supported by the current operating system are used for this.
rclone
It is also possible to use console synchronizers with filter settings. For Google Drive, rclone works well. Filter documentation https://rclone.org/filtering/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question