ElectricRCAircraftGuy / eRCaGuy_backup

Easily back up your files on any Linux system via a Bash rsync wrapper which supports dry-runs, include & exclude files, and nice logging.
GNU General Public License v3.0
1 stars 0 forks source link

Add the extra information in the rsync logfiles to the stdout logfiles #4

Open ElectricRCAircraftGuy opened 1 year ago

ElectricRCAircraftGuy commented 1 year ago

...such as the date and timestamps and all.

Ex of an rsync logfile:

2023/03/14 22:11:28 [1877215] building file list
2023/03/14 22:11:31 [1877215] .d..t...... "etc/cups/"  4096 Bytes
2023/03/14 22:11:31 [1877215] >f..t...... "etc/cups/subscriptions.conf"  395 Bytes
2023/03/14 22:11:31 [1877215] >f..t...... "etc/cups/subscriptions.conf.O"  395 Bytes
2023/03/14 22:11:33 [1877215] .d..t...... "home/gabriel/"  4096 Bytes
2023/03/14 22:11:33 [1877215] >f.st...... "home/gabriel/.git_editor.sublime-workspace"  7328 Bytes
2023/03/14 22:11:33 [1877215] >f.st...... "home/gabriel/.lesshst"  851 Bytes
2023/03/14 22:11:36 [1877215] .d..t...... "home/gabriel/.config/sublime-text-3/Local/"  4096 Bytes
2023/03/14 22:11:36 [1877215] >f.st...... "home/gabriel/.config/sublime-text-3/Local/Auto Save Session.sublime_session"  6558806 Bytes
2023/03/14 22:11:38 [1877215] .d..t...... "home/gabriel/.local/share/"  4096 Bytes
2023/03/14 22:11:38 [1877215] >f.st...... "home/gabriel/.local/share/recently-used.xbel"  609785 Bytes
2023/03/14 22:11:38 [1877215] .d..t...... "home/gabriel/.local/share/gnome-shell/"  4096 Bytes
2023/03/14 22:11:38 [1877215] >f..t...... "home/gabriel/.local/share/gnome-shell/application_state"  1815 Bytes
2023/03/14 22:11:40 [1877215] .d..t...... "home/gabriel/.local/share/tracker/data/"  4096 Bytes
2023/03/14 22:14:50 [1877215] *deleting   "home/gabriel/GS/dev/eRCaGuy_dotfiles/.git/modules/useful_scripts/eRCaGuy_backup/TAG_EDITMSG"  0 Bytes
2023/03/14 22:14:50 [1877215] .d..t...... "home/gabriel/GS/dev/eRCaGuy_dotfiles/.git/modules/useful_scripts/eRCaGuy_backup/"  4096 Bytes
2023/03/14 22:14:50 [1877215] .d..t...... "home/gabriel/GS/dev/eRCaGuy_dotfiles/.git/modules/useful_scripts/eRCaGuy_backup/objects/"  4096 Bytes
2023/03/14 22:14:50 [1877215] cd+++++++++ "home/gabriel/GS/dev/eRCaGuy_dotfiles/.git/modules/useful_scripts/eRCaGuy_backup/objects/2f/"  4096 Bytes
2023/03/14 22:14:50 [1877215] >f+++++++++ "home/gabriel/GS/dev/eRCaGuy_dotfiles/.git/modules/useful_scripts/eRCaGuy_backup/objects/2f/653dcc3d6bfbc2dd830e42d2f263329438643c"  254 Bytes
2023/03/14 22:14:50 [1877215] .d..t...... "home/gabriel/GS/dev/eRCaGuy_dotfiles/.git/modules/useful_scripts/eRCaGuy_backup/refs/tags/"  4096 Bytes
2023/03/14 22:14:50 [1877215] >f+++++++++ "home/gabriel/GS/dev/eRCaGuy_dotfiles/.git/modules/useful_scripts/eRCaGuy_backup/refs/tags/v0.1.0"  41 Bytes
2023/03/14 22:15:32 [1877215] .d..t...... "home/gabriel/crontab_bak/"  20480 Bytes

vs the same content in the stdout log file.
Notice the stdout log file is missing all of that date and time info right at the beginning of each line:

sending incremental file list
.d..t...... etc/cups/
>f..t...... etc/cups/subscriptions.conf
>f..t...... etc/cups/subscriptions.conf.O
.d..t...... home/gabriel/
>f.st...... home/gabriel/.git_editor.sublime-workspace
>f.st...... home/gabriel/.lesshst
.d..t...... home/gabriel/.config/sublime-text-3/Local/
>f.st...... home/gabriel/.config/sublime-text-3/Local/Auto Save Session.sublime_session
.d..t...... home/gabriel/.local/share/
>f.st...... home/gabriel/.local/share/recently-used.xbel
.d..t...... home/gabriel/.local/share/gnome-shell/
>f..t...... home/gabriel/.local/share/gnome-shell/application_state
.d..t...... home/gabriel/.local/share/tracker/data/
*deleting   home/gabriel/GS/dev/eRCaGuy_dotfiles/.git/modules/useful_scripts/eRCaGuy_backup/TAG_EDITMSG
.d..t...... home/gabriel/GS/dev/eRCaGuy_dotfiles/.git/modules/useful_scripts/eRCaGuy_backup/
.d..t...... home/gabriel/GS/dev/eRCaGuy_dotfiles/.git/modules/useful_scripts/eRCaGuy_backup/objects/
cd+++++++++ home/gabriel/GS/dev/eRCaGuy_dotfiles/.git/modules/useful_scripts/eRCaGuy_backup/objects/2f/
>f+++++++++ home/gabriel/GS/dev/eRCaGuy_dotfiles/.git/modules/useful_scripts/eRCaGuy_backup/objects/2f/653dcc3d6bfbc2dd830e42d2f263329438643c
.d..t...... home/gabriel/GS/dev/eRCaGuy_dotfiles/.git/modules/useful_scripts/eRCaGuy_backup/refs/tags/
>f+++++++++ home/gabriel/GS/dev/eRCaGuy_dotfiles/.git/modules/useful_scripts/eRCaGuy_backup/refs/tags/v0.1.0
.d..t...... home/gabriel/crontab_bak/