2022-08-10
Time Machine Alternative For Linux/Windows

use test to check existance some manual created identity file to prove if the endpoint is connected

(really? does that check work for offline rclone samba drives?)


format the backup disk as xfs so we can do symlink on it (linux).


use flock (from util-linux) to prevent multiple backup instances from running.

alternative: run-one

1
2
3
4
sudo apt-add-repository ppa:run-one/ppa
sudo apt-get update
sudo apt-get install run-one


linux-timemachine supports windows, linux, macOS, using rsync as backend, can use hardlink to make backup management very easy. can delete previous backup without losing data. need external controller to make “circular” or to only keep most recent backups on disk.

curated list of alternative time machine for OSes other than macOS

timeshift gui backup/restore tool for linux

duplicity incremental backup can store backup into encrypted tar files and support IMAP protocol as remote file server

Read More

2022-07-28
Time Machine Nas Macos

use rclone to periodically commit files to NAS (incremental only, do not delete things), or use rclone to copy files to external SSD

buy airport extreme as wireless router and backup device


when in doubt, delete files under GUI instead of terminal

check out commands for moving files into trash bin instead of direct removal on different OSes


my data under ~/works is lost. fuck.

buy me some ssd 512GB at least to do time machine backup.

buy m.2 ssd to reduce the size.

use usb-c cables to prevent inconvenience.


the filesystem will be formatted as APFS.

need a dedicated usb storage for it.

do not know if it is incremental backup.

Read More

2022-05-29
Upload Model To Huggingface

via code:

https://zhuanlan.zhihu.com/p/390826470

from transformers import AutoModelForMaskedLM, AutoTokenizer

checkpoint = “camembert-base”

model = AutoModelForMaskedLM.from_pretrained(checkpoint)

tokenizer = AutoTokenizer.from_pretrained(checkpoint)

model.push_to_hub(“dummy-model”)

tokenizer.push_to_hub(“dummy-model”)

config.push_to_hub(““)

Read More