Bash script to automatically copy file on USB drive when plugged in
Alternatives To Bashusbcopy
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
7 months ago11gpl-3.0Shell
A bash program to securely create a bootable USB device from one image file.
Flash Chip126
2 years ago4otherShell
Ready to use Flash environment for the C.H.I.P Single Board Computer
Install Flash Chip Mac29
3 years agoShell
2 years ago2gpl-2.0Shell
Bash script to make USB drives bootables with Windows 7/8/8.1/10 installation files
7 years agoShell
Bash script to automatically copy file on USB drive when plugged in
5 years agogpl-3.0Shell
usbfd is a Linux Bash script. Used to mount unmount and format USB sticks with up to 1000 FDD images as used by USB Floppy Disk Drive Emulators. Originally written for GOTEK 1000 models.
Kindle Notes Backup7
3 months ago2gpl-3.0Shell
Bash script that automatically syncs Kindle notes to a git repo when Kindle is mounted on USB
3 years ago2apache-2.0Shell
A bash script to wirelessly connect android devices to a mac via adb
Usb Pm Tools6
10 years agogpl-2.0Shell
Scripts for improved Linux USB power management.
3 years agogpl-3.0Python
These scripts retrieve user files and folders and remove shortcut and autorun viruses from USB storage devices like pendrives. The signature of the shortcut virus(it removes) is that the virus creates a batch script in the folder it affects and converts everything in the folder it affects into a shortcut.
Alternatives To Bashusbcopy
Select To Compare

Alternative Project Comparisons


Bash script to automatically copy file on USB drives when it's plugged on USB port. Used to make massive copies of files on usb drives (usb drives gifted during conference).

Features :

  • Automatic launch when an USB drive is plugged in
  • Automatic mount of ntfs USB drive (can be manualy changed to non ntfs partition)
  • Automatic copy of a whole folder (including sub-folders, keeping the hierachy)
  • Automatic notification on the desktop when copy is done (using notify-send)
  • Automatic umount after copy
  • Support multiple USB drives at the same time ( is called each time)

Setup :

General setup :

Please add that command in /etc/udev/rules.d/99-usbhook.rules to run script when an usb drive is plugged in ACTION=="add",KERNEL=="sd*", SUBSYSTEMS=="usb", ATTRS{product}=="*", RUN+="/home/stf/ %k" (Change run command according to the location of that script)

Run sudo udevadm control --reload-rules to update udev rules

Create log file (according to the configuration in > sudo touch /var/log/usbhook

In :

  • Don't forget chmod +x
  • Edit the path SRC (line 25) according to the source folder that you want to copy on usb drives
  • Edit the mount command (line 40) if you don't want to use ntfs partition
  • Edit the user stf by your own username in sudo command at line 51 if you want to see notification on desktop
Popular Usb Projects
Popular Bash Script Projects
Popular Hardware Categories

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Bash Script