simple-backup writes into /media/ if disk not found

Bug #360432 reported by Tombigel
4
Affects Status Importance Assigned to Milestone
sbackup (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: sbackup

I have a USB disk mounted to /media/sdd1 and defined as sbackup target.
Today I started working and got tons of errors, after fiddling around i found out that my "/" disk is full.
Only after I unmounted all of my other disks I discovered that today's backup was created in /media/sdd1 *directory* instead of on the mounted media, and just filled up the entire disk.

Ubuntu 8.10

Revision history for this message
Jakob Hilmer (jakob-hilmer) wrote :

Your problem is properly what '/media/sdd1' is not permanent mounted. sbackup check if target exists - if not it create a directory and starts the backup.

Perhaps sbackup should be changed so when a backup target is declared it should stamp the target directory with a stamp file there declare the target as an target for backups. When sbackup starts backing up it should precheck for the stamp file. If the stamp file is missing it should notify the user before doing the backup.

--
Jakob Hilmer

Revision history for this message
Anton (feenstra) wrote : Re: [Nssbackup-team] [Bug 360432] Re: simple-backup writes into /media/ if disk not found

jhilmer wrote:
> Your problem is properly what '/media/sdd1' is not permanent mounted. sbackup check if target exists - if not it create a directory and starts the backup.
>
> Perhaps sbackup should be changed so when a backup target is declared it
> should stamp the target directory with a stamp file there declare the
> target as an target for backups. When sbackup starts backing up it
> should precheck for the stamp file. If the stamp file is missing it
> should notify the user before doing the backup.

nssbackup has this functionality. The backup directory is created when
set for the first time, and *no* directory will be created during
backup. So, if the directory is not there, no backup is made.

nssbackup is still in alpha state, however, and we're working on merging
in sbackup (or its features) into it.

Please have a look at https://launchpad.net/nssbackup if you're interested.

--
Groetjes,

Anton
  _____________ _______________________________________________________
| | |
| _ _ ___,| K. Anton Feenstra |
| / \ / \'| | | IBIVU/Bioinformatics - Free University Amsterdam |
|( | )| | | De Boelelaan 1083A - 1081 HV Amsterdam - Netherlands |
| \_/ \_/ | | | Tel +31 20 59 87783 - Fax +31 20 59 87653 - Room P136 |
| | <email address hidden> - www.few.vu.nl/~feenstra/ |
| | "I'm Looking for a New Simulation" (Stone Temple |
| | Pilots) |
|_____________|_______________________________________________________|

Revision history for this message
Tombigel (tombigel) wrote :

The problem here as I see it is that the program is supposed to "know" that in /media/XXX there are pointers to other medias, and not even try to create a folder or write into that folder if the media itself does not exist.
I don't know if i had the "suspend if media doesn't exist" checked, but it looks like that this would have happened also if the checkbox was checked.

Revision history for this message
Jakob Hilmer (jakob-hilmer) wrote :

Is it not a duplicate of this bug https://bugs.edge.launchpad.net/nssbackup/+bug/346285

Tombigel please mark it as duplicate of 346285 if you agree.

Revision history for this message
Tombigel (tombigel) wrote :

Thanks you are right, It's a duplicate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.