Recent

Author Topic: Ben's Solid Backup v1.0.2  (Read 594 times)

DreamVB

  • Jr. Member
  • **
  • Posts: 83
    • Memo Pad
Ben's Solid Backup v1.0.2
« on: September 15, 2023, 11:16:15 pm »
Hi, All

I made a small project for backing up files and sub-folders all you need to do is select a folder to back up and the place you want to backup to really simple to use I made it to backup my Lazarus projects hope you find it us full all comments welcome.

http://dreamvb.rf.gd/bbackup/
« Last Edit: September 17, 2023, 11:24:09 pm by DreamVB »
Dream Believe Achieve

Bart

  • Hero Member
  • *****
  • Posts: 5079
    • Bart en Mariska's Webstek
Re: Ben's Solid Backup
« Reply #1 on: September 16, 2023, 12:18:37 am »
Hi,

Nice work.
At least I'm not the only one with their own backup program.

Some remarks:
  • IIRC then TProgressBarMax may be limited to a value < the size of the file you copy. (I would set Max to 100 and just calculate the percentage)
  • No error checking on the copy process?
  • Saving the inifile in the folder where the executable resides is maybe not a wise choice. Normally those places are not writebale for the common user. Consider making use of the GetAppConfigDir function
  • There's a typo in the errormessage in TfrmNewProj.SaveProject  :)

Some possible improvements:
  • You copy every file you find. You may consider not copying if the file aready exists in the destination folder and that file is of the same age (or newer) than the one in the source directory. This is especially helpfull iy e.g. plan to backup large folder structures
  • Consider giving hte user the possibility to define a mask for files that they want to backup (e.g *.pas;*.pp;*.p;*.lfm;*.lpi;*.lpr), or the opposite: to exclude certain files (e.g. *.exe;*.tmp;*.bak
  • Extending on that: give the user the possibility to exclude certain folders form the backup process
  • And you will always think of more possible improvements...

Bart

DreamVB

  • Jr. Member
  • **
  • Posts: 83
    • Memo Pad
Re: Ben's Solid Backup
« Reply #2 on: September 16, 2023, 05:15:29 pm »
Hi, Bart

Glad you like my project I will look at some of the things you said.
Check again for updates.
Dream Believe Achieve

DreamVB

  • Jr. Member
  • **
  • Posts: 83
    • Memo Pad
Re: Ben's Solid Backup
« Reply #3 on: September 17, 2023, 11:23:53 pm »
hi, all.

just to let you know I done some small updates on my project get the latest application and source code below.

http://dreamvb.rf.gd/bbackup/
Dream Believe Achieve

 

TinyPortal © 2005-2018