Commit Graph

15 Commits

Author SHA1 Message Date
Luca Pellegrini 69b735e9a7 Update *.code-workspace file 2023-10-17 23:07:14 +02:00
Luca Pellegrini f3e1702107 Get information about laptop battery (just a stub) 2023-10-17 23:06:18 +02:00
Luca Pellegrini dce30caf8f backup-to-HDD-1.sh: Update directories to be sync'ed 2023-10-17 23:03:04 +02:00
Luca Pellegrini edce9d5b2d rsync-via-ssh: Update directories to be sync'ed 2023-10-17 23:01:44 +02:00
Luca Pellegrini f92aba99f4 Update .gitignore 2023-10-17 22:59:08 +02:00
Luca Pellegrini 43df027749 limit-battery-charge: Small improvements 2023-06-16 17:07:17 +02:00
Luca Pellegrini fd6bdb4c4e Add 'backup-to-HDD-1.sh'
backup-to-HDD-1.sh performs a backup of a set of specified directories
to an external hard drive.

The set of directories, and their specific options, are hardcoded in
the script's `sync_multimedia_dirs` and `sync_data_dirs` functions.

The destination of the backup (the mount point of the external drive)
can be specified as a parameter on the command line (defaults to
'/media/luca/HDD-1').
2023-06-16 17:01:31 +02:00
Luca Pellegrini 5551313171 rsync-via-ssh: Update 'run_rsync' function 2023-06-16 16:53:04 +02:00
Luca Pellegrini b40cd06008 rsync-via-ssh: Small improvements
* Update comments describing functions and variables
* Save log files to a dedicated subdirectory in the user's home folder:
  * Check if XDG_CACHE_HOME environment variable is set:
    * If yes, subdirectory is "$XDG_CACHE_HOME/rsync-via-ssh"
    * Otherwise, subdirectory is "$HOME/.cache/rsync-via-ssh"
* Add -h and --update to rsync options
2023-06-16 16:36:55 +02:00
Luca Pellegrini bb3faa57be Add 'rsync-via-ssh'
rsync-via-ssh is a script I designed to sync files and directories between
to machines (e.g. a laptop and a desktop) using rsync over a SSH connection.

The directories which are synchronized are hardcoded inside the script's
'run_rsync' function, because that suits my use case.

Currently the script has one mandatory argument: the IP address of the
remote host (the destination of the sync). Optional arguments are:
the port on which the SSH server on the remote host is listening,
a custom filename for the log file genarated by the script.

An interactive mode is in development.
2023-05-03 21:19:10 +02:00
Luca Pellegrini 9ae9b95a3c Add and publish 'limit-battery-charge'
limit-battery-charge is a script used to set a limit to battery charge
on supported laptops (currently tested only on my ASUS VivoBook S15).
This helps preserve battery health.

Credits to the ArchWiki (https://wiki.archlinux.org/title/Laptop/ASUS),
from which I took the information needed to write this script.
2023-04-29 23:06:59 +02:00
Luca Pellegrini 1a9a3fbf43 Setup VS Code workspace 2023-04-29 19:40:16 +02:00
Luca Pellegrini c80d457c08 Update .gitignore 2023-04-29 19:38:13 +02:00
Luca Pellegrini 99b7c51e4e Add README.md 2023-04-29 19:36:28 +02:00
Luca Pellegrini d37523f2f8 Initial commit
Add LICENSE (GNU GPL v3) and .gitignore
2023-03-22 23:20:18 +01:00