wget
Download entire https://shylysmiling.github.io/
site:
wget --recursive --timestamping --level=inf --convert-links --page-requisites --no-parent --force-directories https://shylysmiling.github.io/
Notable options:
--convert-links
enable converting remote links to local relative links in HTML documents after downloading finished.--no-parent
forbids to look up parent directories.--force-directories
enable creating folder hierarchy instead of downloading all resources to one flat folder.Search for all options at man 'wget(1)'.
zip
List paths you want to include to archive in includes.txt
file.
The asterisk (*
) is important for selecting all directory content.
/home/kelly/Documents/*
/home/kelly/Pictures/*
/home/kelly/Projects/*
/home/kelly/.profile
List paths that must not be included in excludes.txt
file.
/home/kelly/Projects/*.o
/home/kelly/Projects/*.a
Run the archiver.
zip -u -y -9 -r /home/kelly/backup.zip /home/kelly -i@includes.txt -x@excludes.txt
Notable options:
-y
force storing symlinks instead of dereferencing it.-r
enable recursive directories traversing.Search for all options at man 'zip(1)'.
Ensure that GVFS is installed.
Locate the gvfsd-archive
executable inside /usr
.
find /usr -name gvfsd-archive
It's found at /usr/lib/gvfsd-archive
in my distribution.
Mount the /home/kelly/backup.zip
archive using previously founded program.
/usr/lib/gvfsd-archive file=/home/kelly/backup.zip