Welcome Guest.   Make a donation to an author on the site July 22, 2014, 04:18:46 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Learn about the DonationCoder.com microdonation system (DonationCredits).
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: IDEA: setting up a simple encrypted ftp offsite backup  (Read 5493 times)
Jammo the OrganizedFellow
Supporting Member
**
Posts: 212


see users location on a map View Profile WWW Give some DonationCredits to this forum member
« on: November 09, 2006, 11:02:13 PM »

original post here: http://www.donationcoder....ic=2003.msg43177#msg43177
Perhaps a CodingSnack is in order?

example:
User navigates to file/files in Explorer, selects them, RightClicks and selects the OPTION (a symphonic melody is played upon selection for added emphasis) smiley.
The option would kick an AHK script (in the background) that launches 7-Zip, zips the files, then proceeds to FTP the file to a predetermined location on the server.

<<my brain tends to shoot into overdrive when I define an IDEA for a Coding Snack>>

MORE DETAILS!
After the user selects the OPTION (another symphonic melody is played upon selection for more added emphasis) in the RightClick context menu, they are prompted by msgbox for:
  • Archive filename (which should be prefixed by timedate stamp to prevent file overwriting)
  • Archive format dropdown menu: 7z, Tar, Zip
  • An unguessable Password + Password confirmation + Password Hint
  • A Yes/No checkbox asking, "Would you like a HelpFile to be created?"
(HelpFile should be a text file that resides on their machine that lists the contents of the files in the archive, timedate stamp of the upload, and the hint of the password.)

User hits Submit, another msgbox appears confirming the above selections:
  • filename
  • format
  • password
  • a reminder that if they forget their password, nothing can be done to retrieve their files (or something to that effect).

smiley

So, I have an overactive imagination. LOL
Logged

As an aspiring web developer/designer, it is a constant struggle to cope with my ADHD + Hypomania/Bipolar Disorder.

The slow growth of my web dev projects is eclipsed by my patience, understanding and desire to learn AS MUCH AS POSSIBLE as I slowly progress.

X_____jamjammo_____
wr975
Charter Member
***
Posts: 369



View Profile Give some DonationCredits to this forum member
« Reply #1 on: November 10, 2006, 02:04:15 AM »

Two suggestions:

a.)

-.) install and configure http://www.toffi-net.de/cFTP-support/eindex.php
1.) select files, right click, create an archive
2.) right click the archive and use context menu entries created by cspbftp csbftp (see the ....CFTP-support... link) to upload to a ftp server.


b.)

Easy: Use Syncback SE to synchronize a backup folder on your machine with a ftp server.

Advanced: You can configure an action BEFORE and AFTER synchronize. I'm using a simple AHK script. The before action starts it with "syncback.ahk backup" and the after action starts it with "synback.ahk delete".Synback transfers the created rar archive.

[copy or print]

if 1 =
msgbox, need parameters

if 1 = backup
run, C:\Progs\System\Winrar\rar.exe a -m5 -o+ -ep c:\private.rar C:\Arbeit\_appdata\passwords.kdb C:\Arbeit\_appdata\compass.htm,,hide

if 1 = delete
Filedelete, c:\private.rar


« Last Edit: November 10, 2006, 07:26:34 AM by wr975 » Logged
wr975
Charter Member
***
Posts: 369



View Profile Give some DonationCredits to this forum member
« Reply #2 on: November 10, 2006, 02:13:24 AM »

btw, it would be easy to add any feature you want. Like password protection.


[copy or print]
if 1 =
msgbox, need parameters

if 1 = backup
{
Inputbox,Password,Password needed,Please enter a password,HIDE
If Password =
{
MsgBox,Empty PW not supported
ExitApp
}
run, C:\Progs\System\Winrar\rar.exe a -m5 -o+ -ep -p%Password% c:\private.rar C:\Arbeit\_appdata\passwords.kdb C:\Arbeit\_appdata\compass.htm,,hide
}

if 1 = delete
Filedelete, c:\private.rar
« Last Edit: November 10, 2006, 02:16:36 AM by wr975 » Logged
jgpaiva
Global Moderator
*****
Posts: 4,710



Artificial Idiocy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #3 on: November 10, 2006, 04:07:29 AM »

Your solution looks interesting, wr975. (it misses the symphonic orchestra though. and i though it was the most important part of the coding snack .tongue)

I couldn't inf any hit on google for cspbftp, though. What's that?
Logged

wr975
Charter Member
***
Posts: 369



View Profile Give some DonationCredits to this forum member
« Reply #4 on: November 10, 2006, 07:22:58 AM »

Sorry, typo.  ohmy

I meant "csbftp" (contextmenu quickuploader: http://www.toffi-net.de/cFTP-support/eindex.php).

Logged
jgpaiva
Global Moderator
*****
Posts: 4,710



Artificial Idiocy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #5 on: November 10, 2006, 10:49:08 AM »

I meant "csbftp" (contextmenu quickuploader: http://www.toffi-net.de/cFTP-support/eindex.php).
Hum.. That looks good.
I was hoping to find something more command-line based, though Sad

Well, jamo.. any comments on wr975's method?
Logged

wr975
Charter Member
***
Posts: 369



View Profile Give some DonationCredits to this forum member
« Reply #6 on: November 10, 2006, 11:33:01 AM »

A Syncback Profile can be run from command line. That's the beauty... do some configuring once, configure a scheduler and fully automated backup to your FTP server.

An AHK script can do everything asked. Use 7Zip to pack, use a commandline ftp to upload, play sounds... all pretty easy to code, just takes time (I don't have, sorry).
Logged
Jammo the OrganizedFellow
Supporting Member
**
Posts: 212


see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #7 on: November 10, 2006, 01:26:32 PM »

Well, jamo.. any comments on wr975's method?
It seems like it should work. but, alas my good fellow, i removed the small application from my machine.

I download, installed, but quickly scrapped the tool from: http://www.toffi-net.de/cFTP-support/eindex.php

1.I don't know German.
2.I did not see any new option in my Right-Click menu.
3.Am cautious of anything that enters something to my registry. I know it's needed for the Right-Click menu, but I can/will do without.

Your solution looks interesting, wr975. (it misses the symphonic orchestra though. and i though it was the most important part of the coding snack .tongue)
I think perhaps we should make that a requirement ... the symphonic melody that plays when ya Right-Click a new OPTION.
??? smiley

A Syncback Profile can be run from command line. That's the beauty... do some configuring once, configure a scheduler and fully automated backup to your FTP server.

An AHK script can do everything asked. Use 7Zip to pack, use a commandline ftp to upload, play sounds... all pretty easy to code, just takes time (I don't have, sorry).
I think I'll just learn to use (first of all) SyncBack, it's on my downloaded list of favorite apps, and then when I know I'm using it properly, learn AHK well enough to manipulate it to my will.
Logged

As an aspiring web developer/designer, it is a constant struggle to cope with my ADHD + Hypomania/Bipolar Disorder.

The slow growth of my web dev projects is eclipsed by my patience, understanding and desire to learn AS MUCH AS POSSIBLE as I slowly progress.

X_____jamjammo_____
wr975
Charter Member
***
Posts: 369



View Profile Give some DonationCredits to this forum member
« Reply #8 on: November 10, 2006, 02:05:03 PM »

Quote
1.I don't know German.

Sorry, thought the program was multi-lingual, as they offer a English homepage. thumb down Couldn't test in on my German XP.

Quote
2.I did not see any new option in my Right-Click menu.
3.Am cautious of anything that enters something to my registry. I know it's needed for the Right-Click menu, but I can/will do without.

Well, if you disallow registry access it won't work. SyncBack also needs registry access, but you don't have to be cautious with SyncBack. It's no malware.
Logged
wreckedcarzz
Charter Member
***
Posts: 1,620



Happy wolfie ^_^

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #9 on: November 10, 2006, 02:23:42 PM »

I used SyncBack a couple times; wonderful little app. I used it for an external, on-site hard drive though...
Logged

New website! With a fancy domain name and everything! *gasp*
http://www.wreckedcarzz.com/
tinjaw
Supporting Member
**
Posts: 1,926



I'm so glad breakbeat techno isn't an illegal drug

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #10 on: November 10, 2006, 02:34:19 PM »

The obvious reply is that almost any backup program these days does what you are looking for. Are you just looking for free or single purpose or something else?
Logged

 
Jammo the OrganizedFellow
Supporting Member
**
Posts: 212


see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #11 on: November 10, 2006, 08:35:55 PM »

SyncBack also needs registry access, but you don't have to be cautious with SyncBack. It's no malware.
oh, i have full 100% trust in the apps from 2BtightSparks.
i've used them many times before.

one of my faves, aside form SyncBack, is their Calculate Hash Value script. So useful when downloading from a developers site and they offer a MD5 or SHA-1 hash code.


The obvious reply is that almost any backup program these days does what you are looking for. Are you just looking for free or single purpose or something else?
free and or opensource.
i've used SyncBack a few times before. i actually used it before as a set-it-and-forget-it kinda thing.
i dont think Firefox 2 has this feature, but in 1.5, bookmarks were saved automatically in its own file. i had SyncBack sync it with another folder where i had all my essential files.

i did that with many files. i really like its wildcard * filter.
i had everything backed up and ready for CD archive without doing much work.



i started this whole thread in the hopes that perhaps someone would be able to take upon the task of coding a AHK script that incorporated 7-Zip for archive + encryption + FTP.
i'm fine doing it they way ive been doing it. just always on the prowl for something BETTER. ya know?!
Logged

As an aspiring web developer/designer, it is a constant struggle to cope with my ADHD + Hypomania/Bipolar Disorder.

The slow growth of my web dev projects is eclipsed by my patience, understanding and desire to learn AS MUCH AS POSSIBLE as I slowly progress.

X_____jamjammo_____
tinjaw
Supporting Member
**
Posts: 1,926



I'm so glad breakbeat techno isn't an illegal drug

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #12 on: November 11, 2006, 07:26:55 AM »

Then I would agree that a batch file that zips with encryption and then uploads is simple enough of a solution that a more formal one would be a waste. Especially since a short batch/script would be eminently more adaptable then a hardcoded solution.
Logged

 
Jammo the OrganizedFellow
Supporting Member
**
Posts: 212


see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #13 on: November 11, 2006, 12:46:46 PM »

Then I would agree that a batch file that zips with encryption and then uploads is simple enough of a solution that a more formal one would be a waste. Especially since a short batch/script would be eminently more adaptable then a hardcoded solution.

oohh yyeess, excellennnt


although my bat writing skillz suck. the best ive done was a script that copied certain files to a certain folder. but i didnt know about the encryption thing.

<<EDIT:i just read that 7zip works via command line too.neat.>>
« Last Edit: November 11, 2006, 12:48:46 PM by jammo » Logged

As an aspiring web developer/designer, it is a constant struggle to cope with my ADHD + Hypomania/Bipolar Disorder.

The slow growth of my web dev projects is eclipsed by my patience, understanding and desire to learn AS MUCH AS POSSIBLE as I slowly progress.

X_____jamjammo_____
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.049s | Server load: 0.18 ]