Linked Questions

183 votes
10 answers
436k views

Running programs in the background from terminal

How do I run a program in the background of a shell, with the ability to close the shell while leaving the program running? Lets say my UI is having problems or for some reason, I need to boot up a ...
OVERTONE's user avatar
  • 2,307
48 votes
9 answers
88k views

How to automatically archive a directory?

I want to do one way synchronization. I am having Folder A on my computer which is constantly updated with content. Another Folder B is used for backup purpose which is on external HDD. Now what I ...
BhaveshDiwan's user avatar
  • 11.1k
26 votes
2 answers
29k views

Autorun a script after I plugged or unplugged a USB device

What can I do to run automatically a script after I mount/plugin or unmount/unplug a USB device?
Radu Rădeanu's user avatar
16 votes
2 answers
18k views

How do I run a script on a dbus signal?

Is it possible to run a script on an arbitrary dbus signal? Something like Upstart that runs as an unprivileged user and doesn't require root perms to modify? I ask because I've already written a ...
Erigami's user avatar
  • 4,476
11 votes
2 answers
9k views

Automatically sync a folder to a USB when USB is plugged in?

Is there a way to sync a folder to an USB drive when the drive is plugged in? I'd like it to sync, or copy over changes, both ways. I've seen the Back In Time and Unison-GTK applications, but I'd like ...
John's user avatar
  • 1,367
6 votes
3 answers
7k views

External Hard Drive sync

I was wondering whether there's a mechanism to sync two external hard drives, so that the files are updated both ways (and they end up containing the exact same information). Ideally it could run ...
GuyfromAmsterdam's user avatar
4 votes
2 answers
3k views

Using duplicity directly, is it possible to have multiple backup plans?

If I understand correctly, duplicity is the command line tool for creating backups and can be used stand-alone (i.e. no DejaDup involved) for creating backups. Is it possible to set up multiple ...
black_puppydog's user avatar
4 votes
0 answers
1k views

Run script AFTER automounting usb hdd (udev, mount --bind) [duplicate]

Possible Duplicate: How to run a script when a distinct flash-drive is mounted? When plugging-in my USB HDD, it is mounted automatically, as expected. After that event, I'd like to automatically ...
Matthias Metzger's user avatar
3 votes
1 answer
18k views

Symbolic links lost after restart

I have been working on setting up some symbolic links so that I can easily access directories and files on another internal hard drive. When I create the links they work well, but every time that I ...
N. Overton-Katz's user avatar
3 votes
1 answer
4k views

Server: Automount USB drive with systemd

I have a server running Ubuntu Server 20.04 and I want to launch a script as soon as a known USB Encrypted (LUKS) device is plugged in into the server. For launching the script, I already have the ...
Manuel's user avatar
  • 948
2 votes
1 answer
612 views

Is there a way to run a script every time I insert a usb modem?

I would like a shell script to execute each time I insert a USB modem. How would I do this?
Prakash P's user avatar
  • 319
2 votes
1 answer
4k views

`udevadm test` shows command should run on USB disk add, but it doesn't

I'd like to have a backup script execute when certain external USB drives get mounted. I'm trying to achieve this with udev. What I've done so far: Identified my USB drive using sudo udevadm info --...
David Sulc's user avatar
2 votes
2 answers
1k views

Run a script on detecting modem

My problem is I am not able to run script automaticlly when modem is connected. I need a code to be run when my modem is detected. I am having a photon modem and I am using sakis3g script to connect ...
Bibi424's user avatar
  • 618
1 vote
0 answers
582 views

What is the proper way to run script when mounting specific usb drive with mountpoint as argument?

I want to update some files on portable usb drive when it connects to my desktop with Ubuntu 18.04. I can do it with a script, but for this, a destination location (FS mountpoint) must be determined. ...
bvasiliev's user avatar
  • 471
1 vote
1 answer
623 views

Auto-run script when iPad plugged in

The way that Ubuntu handles documents on the iPad is awesome (without any configuration required). It beats windows, even with iTunes installed. I want to have the documents in certain iPad apps ...
Kit Johnson's user avatar

15 30 50 per page