muyouming / gphotosuploader

Unofficial Google Photos uploader and Go library
GNU General Public License v3.0
60 stars 16 forks source link

多个目录如何添加呢? #3

Open tanst opened 5 years ago

muyouming commented 5 years ago

你可以在bash里单独执行另一个命令,来监控或者上传另一个文件夹

tanst commented 5 years ago

gphotosuploader --watch /photos1 --maxConcurrent 4 类似这种吗?它会在后台执行吗?当我关闭终端的时候。 当我不想上传这个目录的时候,如何关闭watch这个目录呢? PS:成都今天真热~

muyouming commented 5 years ago

想要后台执行,可以使用nohup 或者tmux 最简单的命令可以使用 nohup gphotosuploader --watch /photos1 --maxConcurrent 4 &

最后的&不要省略。

muyouming commented 5 years ago

夏天要来了,可以把羽绒服和秋裤脱了

tanst commented 5 years ago

我想直接添加到run.sh里面怎么添加呢?我直接添加了一行:

/bin/bash -c "nohup ./cow & "
/bin/bash -c "sleep 4; /go/bin/gphotosuploader --watch /photo --maxConcurrent 4" 
/bin/bash -c "sleep 4; /go/bin/gphotosuploader --watch /photo1 --maxConcurrent 4" 

貌似没用:(

muyouming commented 5 years ago

你把第二行改成: /bin/bash -c "sleep 4; /go/bin/gphotosuploader --watch /photo --watch /photo1 --maxConcurrent 4"

tanst commented 5 years ago

谢谢,可以了。还有一个问题,google photos 的cookie有时间限制吗?如何知道过期了呢?

muyouming commented 5 years ago

我的目前跑了1个月,cookie还能用

tanst commented 5 years ago
2019/03/21 01:21:48 Finally consuming events for the /photo/Mobile/Redmi 4/DCIM/2019-03-21 file

使用moments上传的照片如果新建了子目录,无法上传。

uioprr commented 5 years ago
2019/03/21 01:21:48 Finally consuming events for the /photo/Mobile/Redmi 4/DCIM/2019-03-21 file

使用moments上传的照片如果新建了子目录,无法上传。

那边说我那个问题就是这个原因引起的咯

tanst commented 5 years ago
2019/03/21 01:21:48 Finally consuming events for the /photo/Mobile/Redmi 4/DCIM/2019-03-21 file

使用moments上传的照片如果新建了子目录,无法上传。

那边说我那个问题就是这个原因引起的咯

我的监视都有Finally consuming events for字样,只是新建了目录程序貌似识别成文件了。

uioprr commented 5 years ago
2019/03/21 01:21:48 Finally consuming events for the /photo/Mobile/Redmi 4/DCIM/2019-03-21 file

使用moments上传的照片如果新建了子目录,无法上传。

那边说我那个问题就是这个原因引起的咯

我的监视都有Finally consuming events for字样,只是新建了目录程序貌似识别成文件了。

我的日志也是这样: 2019/03/20 08:21:15 Finally consuming events for the /photo/Mobile/MIX 2S/DCIM/2019-03-20 file 这才发现后面有个file,期待能解决这个bug