# mount /srv/db/repos
монтируется через fstab
# mount -t tmpfs tmpts /var/db/repos
# mount | grep repos
repos on /srv/db/repos type 9p (rw,relatime,access=client,trans=virtio)
tmpfs on /var/db/repos type tmpfs (rw,relatime,inode64)
https://stackoverflow.com/questions/2193584/copy-folder-recursively-excluding-some-folders
rsync enables a set of options that are commonly used for archiving files, which means preserving as much of the original file’s metadata as possible.
The -a option is equivalent to specifying the following options individually:
-r: recursive, which means rsync will traverse subdirectories
-l: preserve symbolic links
-p: preserve permissions
-t: preserve timestamps
-g: preserve group ownership
-o: preserve owner ownership
-D: preserve device files and special files
By using -a, you’re telling rsync to preserve the file’s metadata, such as permissions, timestamps, and ownership, in addition to copying the file’s contents. This is useful when you want to create an exact replica of the original files, including their metadata.
# time rsync -a --exclude=.git /srv/db/repos/* /var/db/repos/
real 33m8,741s
user 0m18,758s
sys 2m15,623s
# du -b /var/db/repos/gentoo
193974760 /var/db/repos/gentoo
193 Mb = 0.2 Gb
https://en.wikipedia.org/wiki/CacheFS
«CacheFS is a family of software technologies designed to speed up distributed file system file access for networked computers.»
О, у меня как раз сетевая файловая система 9p.
«Project status seems to be stalled»
Ясно
The Linux CacheFS currently is designed to operate on Andrew File System and Network File System (NFS) filesystems.
Жаль, что про 9p тут ничего не говорится.
Не через NFS же теперь подключать?