LFS201 - Chapter 40 Discussion // Questions // Banter
In the quiz for chapter 40 there were some answers that struck me as irregular. For example:
rsync can create an archive of multiple files. True or False?
The answer given is false, yet rsync can be used to backup an entire directory. Am I missing something or is the answer incorrect?
Thanks!
Comments
-
To me, a directory is not an archive; in this context an archive would mean a ".tar" or ".tar.gz" or (.xz or .bz2) file, or a .zip file. I would not consider a copy of a directory tree an "archive", but that's really a question of interpretation of the word in English. You probably have a different sense of the definition.
0 -
I was wondering if that was it. Thanks for the clarification. I come from a background of film visual effects where the directory tree must be maintained to keep filepaths linked in the software. rsync is used on set to sync camera files to a linux system, and in this context the directory structure of the card the footage comes from is preserved for legal reasons. Are you saying files should all be tarred at the same folder level to be considered an archive?
0 -
If "archive" is some kind of legal term in your situation there may be some strict ideas. For me, though, an archive is simply an entity that stores all associated files say in a project or something, and which can be expanded out to give an exact copy of the original in say another locatition (i.e., with tar -x... or unzip etc.) Compression is optional, and depending on the options used file dates may get altered, but the contents should stay the same.
Using tar with normal options should exactly preserve the contents of the card. Given the fact that SD cards are generally formatted with a non-Linux native filesystem type it is possible there might be some problems if a dumb archive program is used (the built-in Windows zip program for example, fails to deal with large files in a way that is not compatible with standards and screws up when un-archving a zip file on LInux!) But tarring up a SD card is a mundane operation. However, if you untar on a Linux System the files will be identical but reside on a different filesystem type such as ext4 -- which does not affect the files in any way.
0 -
In the context of the original question/comment, rsync backs up files/folders to a remote location. I use it in a script to backup my photos on a remote server and I can attest that we are talking 100,000+ files. Here the rsync part of the script:
options="-avuh"
sudo -u $user -H rsync $options -zz${exclude}${delete} -e ssh "${mount_path}${source_path}" "${remote_user}"@${remote_server}:"${backup_path}" >>$logfile 2>>$logfileNote: I haven't reached chapter 40 yet, so I'm not sure I got it right. Just saw rsync and thought I could throw in my 2 cents.
1 -
Here's one I use every morning to mirror a directory tree on my workstation to my laptop:
!/bin/sh
rsync --progress -avrxH --delete $*
where "$*" stands for all parameters such as THISDIR someserver:/THISDIR
1
Categories
- All Categories
- 175 LFX Mentorship
- 175 LFX Mentorship: Linux Kernel
- 745 Linux Foundation IT Professional Programs
- 372 Cloud Engineer IT Professional Program
- 168 Advanced Cloud Engineer IT Professional Program
- 73 DevOps IT Professional Program - Discontinued
- 3 DevOps & GitOps IT Professional Program
- 98 Cloud Native Developer IT Professional Program
- 7.6K Training Courses & Learning Paths
- AI & ML Training
- Blockchain & Decentralized Identity Training
- Cloud & Containers Training
- Cybersecurity Training
- DevOps & Site-Reliability Training
- Linux Kernel Development Training
- Networking Training
- Open Source Best Practice Training
- System Administration Training
- System Engineering Training
- Web & Application Development Training
- 2 LFD103-JP クラス フォーラム
- 4 LFD210-CN Class Forum
- 764 LFD259 Class Forum
- 681 LFS101 Class Forum
- 2 LFS158-JP クラス フォーラム
- 162 LFS207 Class Forum
- 3 LFS207-DE-Klassenforum
- 4 LFS207-JP クラス フォーラム
- 61 LFS241 Class Forum
- 52 LFS242 Class Forum
- 42 LFS243 Class Forum
- 19 LFS244 Class Forum
- 4 LFS250-JP クラス フォーラム
- 166 LFS253 Class Forum
- 19 LFS256 Class Forum
- 1.4K LFS258 Class Forum
- 165 LFS261 Class Forum
- 26 LFS267 Class Forum
- 792 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 95 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 87 Storage
- 768 Linux Distributions
- 81 Debian
- 67 Fedora
- 22 Linux Mint
- 13 Mageia
- 24 openSUSE
- 150 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 465 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 98 Linux Security
- 78 Network Management
- 101 System Management
- 46 Web Management
- 106 Mobile Computing
- 18 Android
- 73 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 392 Off Topic
- 121 Introductions
- 181 Small Talk
- 29 Study Material
- 944 Programming and Development
- 310 Kernel Development
- 616 Software Development
- 977 Software
- 369 Applications
- 182 Command Line
- 5 Compiling/Installing
- 68 Games
- 317 Installation
- Archived
- 2 LFD140 Class Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)
