Jump to content

Help with tar backup file


belick

Recommended Posts

Hi, I am not sure if this is the right place to ask for help but I will try...

 

I am tring to make a file that can be run by a cronjob on my linux. The file suppose to make a tar file for a specific folder and protect it with a password, then to upload it into FTP server...

 

Any help will be thanksful,

 

Thanks.

Link to comment
Share on other sites

To tar a directory....

 

tar -cvf file.tar directory
gzip file.tar

 

To encrypt the new file using a password (ps: Ive never attempted this with anything other than text files).

 

mcrypt file.tar.gz

 

To ftp the encrypted file to a remote server.

 

ftp put file.tar.gz.nc hostname

Link to comment
Share on other sites

  • 1 month later...

Questions:

 

#!/usr/bash               

tar -cvf file.tar directory         

gzip file.tar                            do I must go with zip too?

mcrypt file.tar.gz                    where do I place my pasword? I need to protect the file...

ftp put file.tar.gz.nc hostname  hostname means the ftp? where is the username and pass?

 

Thanks

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.