Problems activating your account? Send notification email to: [email protected]
Host4Fun Budget VPS Hosting

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GBackup, by HMR (need help)
#11
(04-11-2018, 03:47 PM)youssefbasha Wrote:  Where to add this backup script? (name)
I installed everything but now waiting to select the db backup and etc so i want to edit it.

Ah, I forgot that.
I named that script as backup.sh.
And after that, change permission to +x
chmod +x backup.sh
Use sudo if required.

Then after that, I add to crontab
sudo crontab -e
Why to use sudo? Because of, my VPS, to access other user directory, or /etc folder, I should act as root user.

Then inside the crontab, I insert,
0 0 * * * /pathtobackupfile
So, it will upload to gdrive in 12.00AM everyday.

Btw, to make crontab working, I should reboot my VPS.
Reply
#12
[email protected]:~# cd /usr/bin/
[email protected]:/usr/bin# chmod +x backup.sh
[email protected]:/usr/bin# backup.sh
Starting backup
/usr/bin/backup.sh: 23: /usr/bin/backup.sh: cannot create /home/youssefbasha/backups/mysql/ERROR2002(HY000):Can'tconnecttolocalMySQLserverthroughsocket'/var/run/mysqld/mysqld.sock'(2).sql: Directory nonexistent
tar: Removing leading `/' from member names
What to do with this? 
If you have discord then gimme ur username (better and faster)
Gimme +rep Heart
[Image: img.php?userid=496]
Thanks For Post4VPS and VPSlices for the amazing VPS 4
Reply
#13
just a quick look at but @youssefbasha are you sure this is mysql?
and as i see the script is based on @dynamos version @tiwil have you done this on another os?

| support - pm me - me|
forum.legendary-waffle.xyz

Reply
#14
(04-12-2018, 07:36 PM)perryoo11 Wrote:  just a quick look at but @youssefbasha are you sure this is mysql?
and as i see the script is based on @dynamos version @tiwil have you done this on another os?

Dynamo's script? I've done with my Ubuntu, but not working. Then I created my own script, it works perfectly with my Ubuntu 16.04 (same OS as @youssefbasha)
Reply
#15
Backuped files and didn't backup mysql Sad
Tiwil's script did the files but cant connect to MySQL
Gimme +rep Heart
[Image: img.php?userid=496]
Thanks For Post4VPS and VPSlices for the amazing VPS 4
Reply
 


Forum Jump:


Users browsing this thread: 2 Guest(s)

Sponsors: VirMach - Host4Fun - CubeData - Evolution-Host - HostDare - SSDBlaze - VPSlices - Abc-Hosters


About Post4VPS

Post4VPS is a forum/destiny where you can Delploy Your Free VPSs just by the Power of Posts.

We Provide VPSs of many locations like Germany,US,Canada,France,London,etc.

We also Provide VPSs of Both Linux and Windows OS.