Created
June 28, 2020 04:40
-
-
Save hereisderek/55c9419d3f01bbd96d53fc20defa2e20 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# rclone's log | |
Jun 28 16:12:36 pi2 rclone[499]: Video/Others/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxrwx, err=<nil> | |
Jun 28 16:12:36 pi2 rclone[499]: Video/Others/: Lookup: name="mi_camera" | |
Jun 28 16:12:36 pi2 rclone[499]: Video/Others/: >Lookup: node=Video/Others/mi_camera/, err=<nil> | |
Jun 28 16:12:36 pi2 rclone[499]: Video/Others/mi_camera/: Attr: | |
Jun 28 16:12:36 pi2 rclone[499]: Video/Others/mi_camera/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxrwx, err=<nil> | |
Jun 28 16:12:36 pi2 rclone[499]: Video/Others/mi_camera/: Lookup: name="netease_.swp" | |
Jun 28 16:12:36 pi2 rclone[499]: Video/Others/mi_camera/: >Lookup: node=Video/Others/mi_camera/netease_.swp, err=<nil> | |
Jun 28 16:12:36 pi2 rclone[499]: Video/Others/mi_camera/netease_.swp: Attr: | |
Jun 28 16:12:36 pi2 rclone[499]: Video/Others/mi_camera/netease_.swp: >Attr: a=valid=1s ino=0 size=4096 mode=-rwxrwxrwx, err=<nil> | |
Jun 28 16:12:36 pi2 rclone[499]: Video/Others/mi_camera/netease_.swp: Open: flags=OpenReadOnly+0x20000 | |
Jun 28 16:12:36 pi2 rclone[499]: Video/Others/mi_camera/netease_.swp: Open: flags=O_RDONLY|0x20000 | |
Jun 28 16:12:36 pi2 rclone[499]: Video/Others/mi_camera/netease_.swp: >Open: fd=Video/Others/mi_camera/netease_.swp (rw), err=<nil> | |
Jun 28 16:12:36 pi2 rclone[499]: Video/Others/mi_camera/netease_.swp: >Open: fh=&{Video/Others/mi_camera/netease_.swp (rw)}, err=<nil> | |
Jun 28 16:12:36 pi2 rclone[499]: &{Video/Others/mi_camera/netease_.swp (rw)}: Read: len=4096, offset=0 | |
Jun 28 16:12:36 pi2 rclone[499]: Video/Others/mi_camera/netease_.swp: Size and modification time the same (differ by 507.733µs, within tolerance 1ms) | |
Jun 28 16:12:36 pi2 rclone[499]: Video/Others/mi_camera/netease_.swp: Unchanged skipping | |
Jun 28 16:12:36 pi2 rclone[499]: Video/Others/mi_camera/netease_.swp(0x331a390): Opened existing cached copy with flags=O_RDONLY|0x20000 | |
Jun 28 16:12:36 pi2 rclone[499]: &{Video/Others/mi_camera/netease_.swp (rw)}: >Read: read=4096, err=<nil> | |
Jun 28 16:12:36 pi2 rclone[499]: &{Video/Others/mi_camera/netease_.swp (rw)}: Flush: | |
Jun 28 16:12:36 pi2 rclone[499]: Video/Others/mi_camera/netease_.swp(0x331a390): RWFileHandle.Flush ignoring flush on unwritten handle | |
Jun 28 16:12:36 pi2 rclone[499]: &{Video/Others/mi_camera/netease_.swp (rw)}: >Flush: err=<nil> | |
Jun 28 16:12:36 pi2 rclone[499]: &{Video/Others/mi_camera/netease_.swp (rw)}: Release: | |
Jun 28 16:12:36 pi2 rclone[499]: Video/Others/mi_camera/netease_.swp(0x331a390): RWFileHandle.Release closing | |
Jun 28 16:12:36 pi2 rclone[499]: Video/Others/mi_camera/netease_.swp(0x331a390): close: | |
Jun 28 16:12:36 pi2 rclone[499]: Video/Others/mi_camera/netease_.swp(0x331a390): >close: err=<nil> | |
Jun 28 16:12:36 pi2 rclone[499]: &{Video/Others/mi_camera/netease_.swp (rw)}: >Release: err=<nil> | |
Jun 28 16:12:36 pi2 rclone[499]: Video/Others/mi_camera/netease_.swp: Attr: | |
Jun 28 16:12:36 pi2 rclone[499]: Video/Others/mi_camera/netease_.swp: >Attr: a=valid=1s ino=0 size=4096 mode=-rwxrwxrwx, err=<nil> | |
Jun 28 16:12:37 pi2 rclone[499]: /: Lookup: name="Video" | |
Jun 28 16:12:37 pi2 rclone[499]: /: >Lookup: node=Video/, err=<nil> | |
Jun 28 16:12:37 pi2 rclone[499]: Video/: Attr: | |
Jun 28 16:12:37 pi2 rclone[499]: Video/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxrwx, err=<nil> | |
Jun 28 16:12:37 pi2 rclone[499]: Video/: Lookup: name="Others" | |
Jun 28 16:12:37 pi2 rclone[499]: Video/: >Lookup: node=Video/Others/, err=<nil> | |
Jun 28 16:12:37 pi2 rclone[499]: Video/Others/: Attr: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/etc/systemd/system/rclone_qzhu496.service | |
[Unit] | |
Description=rclone mount service | |
Wants=network-online.target | |
After=network-online.target | |
[Service] | |
Type=notify | |
Environment="RCLONE_CONFIG=/home/pirate/.config/rclone/rclone.conf" | |
Environment="MOUNT_ROOT_DIR=/srv/rclone/qzhu496" | |
Environment="CACHE_DIR=/srv/usb/temp_8g/mnt/rclone_cache/qzhu496/" | |
#Environment="RCLONE_CACHE_DB_PATH=/srv/rclone/qzhu496_gdrive" | |
RestartSec=10 | |
StartLimitIntervalSec=60 | |
StartLimitBurst=5 | |
Restart=on-failure | |
ExecStop=/bin/fusermount -uz ${MOUNT_ROOT_DIR} | |
#ExecStartPre=bash -c "[ -d ${MOUNT_ROOT_DIR} ] || mkdir -p ${MOUNT_ROOT_DIR}" | |
#ExecStartPre=bash -c "mkdir -p ${MOUNT_ROOT_DIR}; mkdir -p ${CACHE_DIR}" | |
ExecStart=/usr/bin/rclone mount qzhu496:/ ${MOUNT_ROOT_DIR} \ | |
--allow-non-empty --allow-other \ | |
--dir-cache-time=72h \ | |
--buffer-size 256M \ | |
--drive-acknowledge-abuse \ | |
--cache-info-age=6h \ | |
--cache-dir=${CACHE_DIR} \ | |
--cache-workers=5 --cache-tmp-wait-time 60m --attr-timeout=1s \ | |
--vfs-read-chunk-size=32m \ | |
--vfs-read-chunk-size-limit=400m \ | |
--vfs-cache-max-age=300h \ | |
--vfs-cache-mode=writes \ | |
--vfs-cache-poll-interval=1m0s \ | |
--use-mmap --max-read-ahead=512k \ | |
--poll-interval=15s \ | |
--volname=qzhu496 --drive-use-trash --checkers=10 \ | |
--dir-perms=0777 --file-perms=0777 --umask=0000 -v \ | |
--rc --rc-addr :5572 \ | |
-vv --syslog | |
#--log-file /var/log/rclone.log | |
# --daemon | |
#--log-file=/tmp/log/rclone.log | |
#--rc-web-gui-no-open-browser --rc-web-gui --rc-web-gui-force-update \ | |
#--rc-user=derek --rc-pass=rclone --rc-addr=0.0.0.0 \ | |
#-vv --log-level INFO | |
# refresh | |
#kill -SIGHUP $(pidof rclone) | |
[Install] | |
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[global] | |
workgroup = WORKGROUP | |
netbios name = TIMECAPSULE | |
security = user | |
passdb backend = tdbsam | |
smb ports = 445 | |
server string = Samba Server %v | |
obey pam restrictions = yes | |
#socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=524288 SO_SNDBUF=524288 | |
map to guest = bad user | |
dns proxy = no | |
wide links = yes | |
follow symlinks = yes | |
unix extensions = no | |
log file = /var/log/samba/%m.log | |
max log size = 1000 | |
log level = 1 | |
acl allow execute always = yes | |
# disable things we don't need | |
server role = standalone | |
server services = -dns, -nbt | |
load printers = no | |
printing = bsd | |
printcap name = /dev/null | |
disable spoolss = yes | |
disable netbios = yes | |
# Time Machine | |
durable handles = yes | |
ea support = yes | |
fruit:aapl = yes | |
fruit:advertise_fullsync = true | |
fruit:time machine = yes | |
kernel oplocks = no | |
kernel share modes = no | |
map acl inherit = yes | |
posix locking = no | |
smb2 leases = yes | |
vfs objects = catia fruit streams_xattr | |
spotlight = false | |
fruit:model = MacPro | |
# Security | |
client ipc max protocol = default | |
client max protocol = default | |
server max protocol = SMB3 | |
client ipc min protocol = default | |
client min protocol = CORE | |
server min protocol = SMB2 | |
[video_pub] | |
browseable = yes | |
comment = Public Video outlet for qzhu496 | |
inherit acls = Yes | |
path = /srv/smb/video_public/ | |
guest ok = yes | |
read only = No | |
writable = yes | |
create mask = 666 | |
directory mask = 777 | |
force user = pirate | |
force group = users | |
[qzhu496] | |
browseable = yes | |
comment = outlet for qzhu496 | |
inherit acls = Yes | |
path = /srv/rclone/qzhu496 | |
guest ok = No | |
read only = No | |
writable = yes | |
create mask = 666 | |
directory mask = 777 | |
force user = pirate | |
force group = users | |
valid users = @users |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
root@pi2:/srv/smb/video_public/Others/mi_camera# ls -asl
total 5
0 -rwxrwxrwx 1 root root 0 Jun 28 14:21 netease.cr~
1 -rwxrwxrwx 1 root root 3 Jun 28 14:21 netease.crt
0 -rwxrwxrwx 1 root root 0 Jun 28 14:21 .netease.crt.swp
0 -rwxrwxrwx 1 root root 0 Jun 28 14:21 .netease.crt.swx
4 -rwxrwxrwx 1 root root 4096 Jun 28 14:21 netease_.swp
root@pi2:/srv/smb/video_public/Others/mi_camera#