[00:00] <wiuempe> TJ-: yes, but i dont know how to debug this... ok, thanks for all
[00:00] <wiuempe> good night or day ;)
[07:13] <cynixx3> I think I have an .htaccess issue. mod_rewrite is loaded but does not look like its phrasing the information in .htaccess
[07:14] <cynixx3> Is there a way to test .htaccess
[09:12] <lordievader> Good morning.
[17:31] <ponyofdeath> hi, anyone here can help me with a problem when I am using inline shell config option in vagrant, I see my script behave differently then when running from within the vm
[18:02] <TJ-> ponyofdeath: probably a different set of environment variables, and shell options.
[18:04] <ponyofdeath> yeah trying to track this down
[18:04] <ponyofdeath> and am looking at the env vars but they seem the same
[18:04] <ponyofdeath> i dump env with the script
[18:04] <ponyofdeath> and when i actually do the login > scipt execution
[18:05] <ponyofdeath> seems that maby maven is having a problem when being called from inline vagrant call vs shell
[20:50] <jonah> hi does anyone know a simple and easy way to do a nightly backup of my ubuntu server to a NAS on my local network and have the backups compressed to save space? I've read about rsync, and bacula and all sorts but it all seems a lot of work?
[20:52] <cynixx3> Rsync is not too bad
[20:54] <Sling> jonah: what would you want to back up? what scenarios are you thinking of?
[20:54] <jonah> cynixx3: so i set up rsync with a cron? but would i also need to tar all the files up, then rsync the tar? I thought there might just be a linux command tool i could use that would simply let you backup "/"  as source and output it as a bzip or tar etc to the nas with incemental filenames but only ever keep two backups etc
[20:54] <cynixx3> if your watching it I like rsync -a --progress /source/dir /destination/dir, then toss your command into cron (preferably by script.sh then cron) . automated backups done.
[20:54] <Sling> complete system restore or just specific locations
[20:55] <jonah> Sling: I just wanted to back the whole server, maybe a full backup each week and a nightly with incremental. i suppose i've been spoilt being used to cpanel and whm before which does this for you
[20:55] <jonah> Sling: I maybe wanted to just leave out some of the dirs that aren't really needed like tmp etc
[20:55] <cynixx3> jonah, you probably want to isolate your configs and home directory for backup. Your entire server will not backup well like that.
[20:55] <jonah> Sling: i have a raid array set up for redundancy but it's not great without a backup going on too...
[20:56] <Sling> yeah raid is definitely not backup
[20:56] <Sling> delete a file, and your raid makes sure its deleted everywhere :)
[20:56] <jonah> cynixx3: well my thought was if my raid fails, i could rebuild it and just restore the whole thing rather than having to reinstall ubuntu etc and try copy home back and then restore configs and stuff
[20:57] <Sling> raid protects you against some hardware failures
[20:57] <jonah> Sling: yeah!
[20:57] <Sling> I'd backup your /etc /home /root and maybe some custom locations, so you can restore from a bare ubuntu setup
[20:57] <jonah> Sling: isn't there anything already designed to just do a weekly and nightly backup out there to make things easy?
[20:57] <Sling> maybe some additional information such as a dkpg -l
[20:57] <Sling> jonah: not terribly plenty if you don't want to pay
[20:57] <Sling> bacula is one of them
[20:58] <cynixx3> jonah, making a backup system is really a good way to learn linux
[20:58] <jonah> Sling: i did look at bacula but didn't really get it. do you have to install bacula on the NAS too??
[20:58] <Sling> jonah: bacula is not trivial to set up
[20:58] <Sling> its comprised of several daemons and mainly built around the concepts of backup tapes
[20:59] <jonah> cynixx3: I know and it's not that I lack a want to learn or dislike going to a lot of effort, but I just thought something simple and convenient might be out there. The less complex it is then hopefully the less likely I am to do it wrong!
[20:59] <Sling> i personally have a script that compresses certain filesystem locations (full once per week, incremental daily), encrypts it, and the throws it to some cloud service like mega.nz
[21:00] <Sling> built around a cli-wrapper for said cloud service
[21:00] <cynixx3> I do something similar with local and remote system with just a bash script.
[21:00] <Sling> but if you want to back up more than a few gb you will probably not be able to do that for free
[21:01] <cynixx3> Sling, while your here are you able to help with a mod_rewrite issue I am working on?
[21:01] <Sling> sure
[21:01] <cynixx3> I need aaa/bbb/ccc/ to show that but be phrased as aaa/index.php?/bbb/ccc Right now all I get is /aaa/bbb/ccc http://pastebin.com/iiD8E9zG
[21:02] <cynixx3> jonah, if you are up for it I will help you get the backup script working today.
[21:02] <Sling> cynixx3: why not use FallbackResource to make all requests to non-existing locations be sent to your index.php?
[21:02] <Sling> you can then use the original uri to route the request in your php script
[21:03] <jonah> cynixx3: ok cool lets try it. though my server potentially will hold over 1tb of data if that matters?
[21:03] <jonah> cynixx3: currently it is pretty new and empty though!
[21:03] <cynixx3> Sling, I attempted that without luck. I am copying an old script from centos to ubuntu-server written by someone else and had it working on centos. I really rather not have to learn their code and fix it.
[21:03] <cynixx3> brb baby cries.
[21:04] <jonah> cynixx3: basically it is on ip 192.168.0.100 and  I have a nas using 192.160.0.2 - and my plan was to somehow just sftp or ssh the data over
[21:04] <jonah> cynixx3: bottle time?
[21:05] <bekks> jonah: And whats the issue with accessing your NAS?
[21:07] <jonah> bekks: just trying to backup my server each night with maybe a full backup each week to the nas, just not sure the best way or how!
[21:07] <bekks> !backup | jonah
[21:13] <cynixx3> jonah, were those resources helpful to you?
[21:14] <jonah> cynixx3: yes but i think i've looked over some of that stuff already...
[21:15] <cynixx3> okay, start by making a backup directory and a shell script to run your backups.
[21:15] <jonah> cynixx3: well i've already made a backup directory on the nas simply called backup
[21:18] <cynixx3> okay, where are you storing the tars before transferring them to nas?
[21:19] <jonah> cynixx3: so do i have to tar the files before i can copy them to nas? as what happens when the server is say 3/4 full and then it has to try tar everything in the last 1/4?
[21:20] <cynixx3> jonah, I am just going off of what you said. You said you wanted to copy and tar before transferring. IF the server is 3/4 full and you try to back it up then the backup will fail.
[21:21] <jonah> cynixx3: ah ok. no i only ask just because i wondered if there is a way to backup straight to a tar?
[21:22] <cynixx3> It would depend on if and how the NAS is mounted.
[21:23] <bekks> jonah: did you read the links given yet?
[21:24] <jonah> cynixx3: ok so it can just be compressed straight over some how?
[21:24] <jonah> bekks: yes had a quick flick through but still unsure what the best way to go is
[21:28] <bekks> jonah: There are totally different methods of crating a backup. tar is just one of them. And not necessarily the best method for your use case.
[21:30] <JanC> there are about 50 rsync-based backup solutions  :)
[21:30] <JanC> or maybe 500
[21:30] <bekks> And about some twenty other backup solutions :)
[21:32] <jonah> ok thanks i'll go do more reading!
[21:32] <cynixx3> bekks, I need help with a mod_rewrite rule if you know anything. I need aaa/bbb/ccc/ to show that but be phrased as aaa/index.php?/bbb/ccc Right now all I get is /aaa/bbb/ccc http://pastebin.com/iiD8E9zG
[21:32] <cynixx3> If I try the fallbackresource then all I get is the homepage and can not do anything on the site. and I really dont want to recode this platform.
[22:43] <jak2000> why: jak@swManzana:~/ftp$ ping 8.8.8.8  i get an answer PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.   wich is bad? gateway? or? thanks
[22:49] <JanC> jak2000: you mean that line is the only thing you get, or?
[22:53] <jak2000> forget paste: From 172.16.11.1 icmp_seq=1 Destination Net Unreachable
[22:56] <JanC> that's a private network IP address?
[22:58] <JanC> you can try to ping the gateway
[22:59] <Seveas> the device on 172.16.11.1 doesn't have a route to 8.8.8.8. Try fixing that :)
[23:14] <jak2000> JanC escuse, me yes i can ping to gw