Greetings to all, I need to make a daily backup of oscam installed on a vps. I would like to create a scheduled task that once a day takes all the files in the / usr / local / etc / path and copies them to an ftp path. Would you give me a hand, I don't really know how to proceed. Thank you
Oscam file script for ftp backup
-
- Scripts OSCam
- studiosat221
- Thread is marked as Resolved.
-
-
Yes... of course... as example here you have a simple Shell script...
(Cron service + Sh + curl + FTP access)
-
master G
Added the Label Scripts Oscam Support -
Can you please explain step by step how to configure this script in linux ubuntu VPS? where to paste this script and how to set exact path in it. and how to start this script via putty ssh
-
sagher sorry, but these are basics of Linux knowledge. You need to know where to save the user's files. You need to know that the script needs to have run-time attribute assigned ( chmod a+x /path/filename ). You must be able to modify a variables in the script by editing it. Otherwise, you may not use this script correctly :-/.
I don't know exactly what you need a regular Oscam backup. In the case of Ubuntu, it is better to back up the Oscam configuration manually ... via the GUI and only occasionally. Do you need to back up the Oscam configuration regularly? Why ?
-
Because i am using low cost secondary VPS for learning and education purpose. and i am still not fulfill to run oscam as a developer or expert user. and my vps is mostly shut down or reboot without any proper notification and i lost my data when i forget to make a manual backup. that is the main reason. i am not linux student i do all on my own will or with the help of all of you. so be positive to teach someone into right way. no one perfect in this world.
-
I already answered before. You must download the script to disk. Assign execution rights to it (chmod a+x /path/filename). Especially this script must be modified in advance to suit your Ubuntu system. You also need to select a directory with an Oscam configuration depending on which directory you are using.
Then, for example, you need to install the "curl" as well as the "tar" archiver. These two "commands" are usually part of any better Linux system. If not, you need to install them on your system, using the package manager: https://help.ubuntu.com/lts/serverguide/dpkg.html or try to use the man-page under your Ubuntu:
dpkg --help
...or:
apt-get --help
For example:
Codesudo apt-get update # update all info about the available online packages sudo apt-get install curl # downlaod and install cURL command curl --help # a simple test of the installed cURL package
Tar archiver should already be a part of Ubuntu VPS, but cURL probably won't be a built-in part of this Linux. Install what you need.
OSCam Support Forum
Configs, discussion, downloads and guides for OSCam Softcam.
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!