编辑“
How to Archive Websites on Unix Like Systems
”
跳到导航
跳到搜索
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
Archiving websites on Unix-like systems can be accomplished using a few different tools and methods. Here are some steps you can follow to archive websites on Unix-like systems: 1. Install wget: wget is a command-line utility for retrieving files from the web using HTTP, HTTPS, and FTP protocols. Most Unix-like systems come with wget pre-installed, but if it's not installed on your system, you can install it using your system's package manager. For example, on Debian-based systems like Ubuntu, you can run the following command to install wget: ``` sudo apt-get install wget ``` 2. Use wget to download the website: Once you have wget installed, you can use it to download the website and its content. The following command will download the entire website and its content recursively: ``` wget --recursive --no-clobber --page-requisites --html-extension --convert-links --restrict-file-names=windows --domains website.com --no-parent https://website.com/ ``` Here's what each option in the command does: * `--recursive`: download the website recursively. * `--no-clobber`: don't overwrite existing files (useful if you need to resume an interrupted download). * `--page-requisites`: download all the necessary files to display the page, such as images and CSS. * `--html-extension`: save files with the `.html` extension instead of the default `.html`. * `--convert-links`: convert links to be relative to the downloaded files. * `--restrict-file-names=windows`: restrict the file names to Windows-compatible names. * `--domains website.com`: only follow links from this domain. * `--no-parent`: don't download files from the parent directory. You can adjust these options to suit your needs. 3. Compress the archive: Once you have downloaded the website, you can compress it to save space. You can use the `tar` command to create a compressed archive: ``` tar -czvf website.tar.gz website.com/ ``` This command creates a compressed archive called `website.tar.gz` of the downloaded website. 4. Store the archive: Finally, you can store the archive in a safe place, such as an external hard drive or cloud storage. That's it! With these steps, you can archive a website on a Unix-like system using wget and tar.
摘要:
请注意,您对freem的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅
Freem:版权
的细节)。
未经许可,请勿提交受版权保护的作品!
取消
编辑帮助
(在新窗口中打开)
导航菜单
个人工具
未登录
讨论
贡献
创建账号
登录
命名空间
页面
讨论
不转换
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
臺灣正體
查看
阅读
编辑
编辑源代码
查看历史
更多
导航
首页
最近更改
随机页面
MediaWiki帮助
工具
链入页面
相关更改
特殊页面
页面信息