Pbackup 3.1.9-1

Miscellaneous tools
Message
Author
User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#196 Post by zigbert »

GeoffS
If your vfat-partition gets mounted as msdos, I think that is a problem with the mount-command, not with Pbackup itself. Sorry for your trouble.

PaulBx1
I'll keep that in mind. The 2.7 is the gui-refresh-edition.

Sigmund

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#197 Post by zigbert »

Pbackup 2.7.0 is uploaded. See main post.

Sigmund

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#198 Post by zigbert »

Version 2.9.0 is uploaded. See main post.

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#199 Post by zigbert »

Version 2.9.1 is uploaded. See main post.

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#200 Post by zigbert »

What about using this crap in another distro?
There has been some rquests of this lately, and I'm doing some loud thinking here. At this stage this is not much tested. - I'm just too happy with my Puppy. I have ran it in ubuntu and grafpup. First of all you must match the dependecies. Then you are ready for a linux system with roots rights. But most common, you run another distro as user, and you have limited rights. Now it depends on how strickly the users permissions are set. In grafpup it seems ok. In ubuntu user are not allowed to kill a process it has started. This will not close the box that shows progress during backup. User that are not allowed to delete files in /tmp/ which makes Pbackup leave its trashfiles. User maybe doesn't have rights to set a scheduled backup in /var/spool/cron/crontabs/$USER. In some multiuser system user should set this tasks in /etc/crontabs/. At last Pbackup can't start cron by default at boot in a system that need superuser rights to start services at boot.

1-2-3-GO
1. Copy Pbackup directory somewhere in your system. Helpfile(s) goes to /usr/share/doc/pbackup/.
2. Make link /usr/bin/gtkdialog3 to whereever gtkdialog was installed.
3. If user aren't owner of Pbackup files, the progress box won't be deleted after backup. To change owner of files:
Example: chown james -R /usr/local/pbackup
GO. (Scheduling must be set manually.)

Do you strugle to get it work, please share your effort to help your friends.

Requirements:
- bash, busybox (or similar)
- gtkdialog 0.7.15, xdialog
Optional:
- cdrtools (mkisofs, cdrecord) for CD-burning
- dvd+rwtools (growisofs) for DVD-burning
- curl for transferring via FTP
- cron for scheduling

All these are Puppy builtin

Sigmund

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#201 Post by zigbert »

Version 3.0.0 is uploaded. See main post.

GeoffS
Posts: 427
Joined: Fri 24 Feb 2006, 08:39
Location: Australia

#202 Post by GeoffS »

Sigmund
Haven't been here for a while :D but I've just had an unhappy experience with Pbackup. I hope this has not already been reported, I've searched and can't find anything.
My daily incremental backup includes my 'data disk' which is a vfat partition from Windows days. It is 4.9Gb. Quite by accident I discovered a directory and contents not being backed-up. The files in this directory are normally updated by a Windows XP program. As the files are only text files I made a small update to one from Puppy, at the next backup it got backed-up.
I know I should not be using a Windows program :( but I use it for making dvds of my photos and having only returned 3 weeks ago from visiting your part of the world I've a LOT of photos to work with and a familiar program is appreciated, I don't do this sort of thing very often.
Anyway, is there any reason you know of why Pbackup wouldn't pick up a Windows update? The change dates are quite OK. I'll post all the config files etc. if you need some more info.
Cheers
Geoff
PS I still like your Pbackup, I won't kick it too hard.

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#203 Post by zigbert »

Good to see you around :D
I know I should not be using a Windows program
Hello... If it's good, of course you should. We should always use what's best. That's why I use Puppy, but who knows tomorrow...

About your problem:
Could it so easy that the date-setting in windows differs from Puppy? Or do we have yet another issue because FAT and EXT uses different attributes, and therefor are hard to compare? In 'sync' these are more obvious, and it has got a option to eliminate the problem.

Could you experiment with 'find -ctime' to see if you can see if it detects date correct (-ctime is checked by 'backup' to see if it is newer than last backup). If you change a file in windows, and then goes to puppy to see if it was changed today...


Sigmund

GeoffS
Posts: 427
Joined: Fri 24 Feb 2006, 08:39
Location: Australia

#204 Post by GeoffS »

Sigmund-
Yes, this IS one of those problems with Windows & Linux & date/times.
When Windows reports 'Date last Modified' is it using ctime or mtime?
When ROX reports 'Date Last Modified' is it using ctime or mtime?
I modified a file in Windows and the 'Date Last Modified' was correctly reported in Windows. I booted Puppy and ROX shows the 'Date Last Modified' as 10 hours into the FUTURE. Modify a file in Puppy and 'Date Last Modified' is correct in Puppy and (I think) in Windows. I haven't checked in Windows but I'm fairly certain I'd have noticed a discrepancy. As I do most of this in the late afternoon and evening a 10 hour discrepancy would be rather obvious.
mtime -1 finds the file that I modified in Windows
ctime -1 does NOT find the file I modified in Windows.
I'm finding this rather confusing :?
Does your script use mtime or ctime or both?
I can't think of any easy way to 'play' with this other than by booting Windows and then Puppy. Using VirtualBox or the network I'd not be sure which was doing the actual updating and be more confused than ever :? :? :( . Using the 2 systems I always think of something I should have checked AFTER I've changed systems :(
I'll keep thinking.
Cheers
Geoff

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#205 Post by zigbert »

Pbackup uses only -ctime, which seems to the wrong choice. -mtime returns status of inode, while -ctime return filestatus. I don't see any bad sides of changing to -mtime, but I have to do some testing before we get a bugfix release.

Thanks for bug-help.
Sigmund

GeoffS
Posts: 427
Joined: Fri 24 Feb 2006, 08:39
Location: Australia

#206 Post by GeoffS »

Sigmund
Thanks for reply and 'work' :D
Don't know your code but would it be possible to use both. Make all tests in the form 'if (ctime > date OR mtime > date) then backup-the-file'?
It appears to me that if either has been changed there is good reason to backup the file, 'backup' can't know why they have changed.
May make the backup file a bit bigger however, to me, that is a 'good' fault.
Cheers
Geoff

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#207 Post by zigbert »

"everything is possible"

But I think we go for -mtime, as I can't see any trouble with it.

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#208 Post by zigbert »

Version 3.0.1

Changelog:
- Refined function to select files/dirs to include/exclude.
- Japanese translation. Thanks to Jimmy Lu (nyu).
- Changed 'find'-syntax from -ctime to -mtime. More compatible with other filesystems (thanks to Geoffs)
- External cron-editor is changed from gcrontab to Pschedule.
- Got rid of some messages to terminal when running quiet mode.
- Moved crond from /etc/rc.d/rc.local to $HOME/.xinitrc to coexist with Pscedule and Pdrive_deamon.
- Bugfix: Radiobutton to select 'schedule weekly' missed time in description.
- Bugfix: Be sure item in crontabs is owned by Pbackup before spesify schedule.
- Minor code cleanup.


Download from main post

Sigmund

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#209 Post by zigbert »

Version 3.0.2

Changelog
- Improved code for setting html-viewer (Thanks to Dougal)
- Moved translators and contributers to 'about'
- Autoselect button in dialogs.
- Pbackup enviroment variables is put first in /usr/local/pbackup.
- Crond is now autostarted from ~/Startup, instead of ~/.xinitrc.
- Bugfix: accept symlinks to dir for choosing temporary storage.
- Bugfix: remove item from 'save-from' doesn't accept spaces in filename.
- Bugfix: symlink to dir is not accepted by 'sync' function
- Bugfix: restore file from CD/DVD.
- Bugfix: resore all in backup.

Download from main post

Sigmund

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#210 Post by disciple »

Try running

Code: Select all

jwm -p
and you'll see an error generated because of the & in pbackup.desktop
It should really be replaced by

Code: Select all

&
, although it doesn't seem to actually break anything...

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#211 Post by zigbert »

Yes, I'm an idiot. :?

My /usr/share/applications/pbackup.desktop:

Code: Select all

[Desktop Entry]
Encoding=UTF-8
Name=Pbackup backup to CD/DVD/HD
Icon=mini-diskette.xpm
Comment=Pbackup backup to CD/DVD/HD
Exec=pbackup
Terminal=false
Type=Application
Categories=Archiving
GenericName=Pbackup 

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#212 Post by zigbert »

Version 3.0.3 is uploaded. See main post.

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#213 Post by disciple »

3.03 still has a "broken" .desktop file

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#214 Post by zigbert »

Can you please try to make the necessary mods and report back. I can't see what's wrong with mine.

Sigmund

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#215 Post by disciple »

Sorry for not being clear enough - what you posted is fine, but it doesn't match what is in the .pet - unless somehow I've got an old .pet labelled as 3.03
Last edited by disciple on Mon 03 Mar 2008, 08:40, edited 1 time in total.

Post Reply