ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Topics
    2. 1337
    3. Posts
    1
    • Profile
    • Following 0
    • Followers 0
    • Topics 273
    • Posts 3,519
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Turn server into backup storage for remote servers?

      @scottalanmiller said in Turn server into backup storage for remote servers?:

      We typically are backing up databases, so full normally.

      Just a side note but one way to make partial backups from databases is to have a "modified date/time" column for large tables.

      Then you can do partial backups by looking at the "modified" timestamp and including all rows that has been modified since the last backup.

      select * from tableX where modified_datetime>last_backup;
      

      This can be done fully application independent if the database have triggers. The trigger will automatically update the "modified date/time" when changes are made and the application has no clue.

      This is an example how to create a trigger that saves when a row is updated:

      create trigger update_modified
      before update on table tableX
      for each row
         set new.modified_datetime=now();
      

      This obviously only makes sense when backups are getting big enough to warrant the extra work.

      posted in IT Discussion
      1
      1337
    • RE: Turn server into backup storage for remote servers?

      @dafyre said in Turn server into backup storage for remote servers?:

      @Pete-S SSH will pretty much only be limited by the bandwidth available for you to suck in the backups.

      I actually just finished a script for doing almost exactly what you said just a few days ago. I sanitized it and dropped in in Gitlab if you want to take a look.

      https://gitlab.com/dafyre/linux-utils/-/blob/master/autobackup/autobackup.sh

      I think I made everything a variable, but since it's sanitized, it's quite possible I missed something.

      This one is for pushing backups from the server with data out to the backup server. Once you get it working, just set it up in Cron and go.

      Great, thanks! Looks good! I'll use that as a base going forward.

      posted in IT Discussion
      1
      1337
    • RE: Turn server into backup storage for remote servers?

      @EddieJennings said in Turn server into backup storage for remote servers?:

      Conceptually one of the easiest things you can do is have this server pull backups from your various Linux servers using something like rsync or just ssh / scp.

      Maybe that's the easiest thing.

      I was thinking perhaps pushing the backup from each server would be better, instead of backups being pulled by the backup server.

      Perhaps taking everything that needs to be backed up, compress it and send it.

      Does ssh support having many concurrent sessions going at the same time, say a hundred?

      posted in IT Discussion
      1
      1337
    • RE: Turn server into backup storage for remote servers?

      @EddieJennings said in Turn server into backup storage for remote servers?:

      There are many things you can do, but we'd need more detail about what data is to be backed up. Also, we'd want to know where these remote servers are compared to this to-be backup server.

      Thanks Eddie.

      Well, the servers are basically web servers (VMs) with not much data, say 5-10GB, in each for a full backup. Backups will run a couple of times per day but they can be incremental.

      The purpose of this is to backup the customer's data and not the server instance.

      Remote servers are a mixture of on-prem VMs, hosted webservers, cloud instances and such.

      posted in IT Discussion
      1
      1337
    • RE: Inconsistent output from PS script

      @gjacobse said in Inconsistent output from PS script:

      @Pete-S said in Inconsistent output from PS script:

      @gjacobse said in Inconsistent output from PS script:

      @Pete-S said in Inconsistent output from PS script:

      @Pete-S said in Inconsistent output from PS script:

      @gjacobse said in Inconsistent output from PS script:

      Get-Service -ComputerName pc1, pc2 SERVICE | Select name, MachineName, Status
      

      Where did you get the -ComputerName syntax from?

      I can't find anything like that from the manual: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-service?view=powershell-7.2

      OK, it's been deprecated. It's available in older versions of powershell, up to 5.1.

      https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-service?view=powershell-5.1

      I read somewhere it doesn't use powershell remoting but dcom instead. And that's why it became obsolete.

      Maybe you haven't got the right dcom privileges to run it remotely.

      Say what now? I'm reading this:

      https://learn.microsoft.com/en-us/powershell/scripting/samples/managing-services?view=powershell-7.2

      I'd put one script on each remote computer and have it send an email whenever the service stops. Or check whatever it is you really want to know with the service.

      Sadly, we already monitor the service. I can be 'running' but fail and need to be stop/started. We've also already done the scheduled task route where it checked it ever 15 min and stop/started it. But there are still times it needs to be manually stop/started. And this is 10x better then what they were doing when I started last year....

      OK, so the script is part of something you actually use to restart it when you decide to?

      posted in IT Discussion
      1
      1337
    • Turn server into backup storage for remote servers?

      I have a server with lots of storage that sits in a datacenter doing nothing.

      What is the easiest/best way to turn this server into a backup storage that I can use to backup remote linux servers?

      posted in IT Discussion backup object storage repositories linux
      1
      1337
    • RE: Inconsistent output from PS script

      @gjacobse said in Inconsistent output from PS script:

      @Pete-S said in Inconsistent output from PS script:

      @Pete-S said in Inconsistent output from PS script:

      @gjacobse said in Inconsistent output from PS script:

      Get-Service -ComputerName pc1, pc2 SERVICE | Select name, MachineName, Status
      

      Where did you get the -ComputerName syntax from?

      I can't find anything like that from the manual: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-service?view=powershell-7.2

      OK, it's been deprecated. It's available in older versions of powershell, up to 5.1.

      https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-service?view=powershell-5.1

      I read somewhere it doesn't use powershell remoting but dcom instead. And that's why it became obsolete.

      Maybe you haven't got the right dcom privileges to run it remotely.

      Say what now? I'm reading this:

      https://learn.microsoft.com/en-us/powershell/scripting/samples/managing-services?view=powershell-7.2

      I'd put one script on each remote computer and have it send an email whenever the service stops. Or check whatever it is you really want to know with the service.

      posted in IT Discussion
      1
      1337
    • RE: Inconsistent output from PS script

      @Pete-S said in Inconsistent output from PS script:

      @gjacobse said in Inconsistent output from PS script:

      Get-Service -ComputerName pc1, pc2 SERVICE | Select name, MachineName, Status
      

      Where did you get the -ComputerName syntax from?

      I can't find anything like that from the manual: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-service?view=powershell-7.2

      OK, it's been deprecated. It's available in older versions of powershell, up to 5.1.

      https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-service?view=powershell-5.1

      I read somewhere it doesn't use powershell remoting but dcom instead. And that's why it became obsolete.

      Maybe you haven't got the right dcom privileges to run it remotely.

      posted in IT Discussion
      1
      1337
    • RE: Inconsistent output from PS script

      @gjacobse said in Inconsistent output from PS script:

      Get-Service -ComputerName pc1, pc2 SERVICE | Select name, MachineName, Status
      

      Where did you get the -ComputerName syntax from?

      I can't find anything like that from the manual: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-service?view=powershell-7.2

      If it actually works like you said, I would assume you need to write it like this (with no spaces):

      Get-Service -ComputerName pc1,pc2 SERVICE | Select name, MachineName, Status
      

      Or encapsulate the list of computers inside double quotes:

      Get-Service -ComputerName "pc1, pc2" SERVICE | Select name, MachineName, Status
      
      posted in IT Discussion
      1
      1337
    • RE: RojoLoco gets a new kitchen....

      @RojoLoco said in RojoLoco gets a new kitchen....:

      @Pete-S said in RojoLoco gets a new kitchen....:

      @RojoLoco said in RojoLoco gets a new kitchen....:

      @Pete-S said in RojoLoco gets a new kitchen....:

      @RojoLoco said in RojoLoco gets a new kitchen....:

      Just talked to the contractor, we are on schedule for granite countertop installation Monday!!! Which means we are looking at maybe Wednesday to start moving back into the kitchen!

      Also, stand by for photo dump...

      Any particular reason why you picked granite or was it the look that settled it?

      Granite is really durable, my girlfriend bakes a lot, and it grows wild in the mountains north of here. So price and availability play into that as well. We looked at some quartz (cultured), it was nice but was only available in different shades of white. The color we're getting is a nice cool gray and white, called "Luna Pearl".

      Makes sense!

      My preference is stainless steel, like commercial kitchens usually have, but granite is a great choice, especially for baking.

      Kitchen looks great so far BTW!

      I thought about stainless but didn't price it. A friend who is an exec chef told me not to, so did my contractor. I guess in this area it's not as in demand when buying a house, that's always a consideration.

      Yes, everything has it's pros and cons. For home use, custom made stainless steel countertops are probably more expensive than granite, but the material itself is cheaper. So you made a good choice.

      For commercial kitchens pros and cons are different though because they're all about hygiene, efficiency and cost, so stainless is more or less the only thing used.

      posted in Water Closet
      1
      1337
    • RE: RojoLoco gets a new kitchen....

      @RojoLoco said in RojoLoco gets a new kitchen....:

      @Pete-S said in RojoLoco gets a new kitchen....:

      @RojoLoco said in RojoLoco gets a new kitchen....:

      Just talked to the contractor, we are on schedule for granite countertop installation Monday!!! Which means we are looking at maybe Wednesday to start moving back into the kitchen!

      Also, stand by for photo dump...

      Any particular reason why you picked granite or was it the look that settled it?

      Granite is really durable, my girlfriend bakes a lot, and it grows wild in the mountains north of here. So price and availability play into that as well. We looked at some quartz (cultured), it was nice but was only available in different shades of white. The color we're getting is a nice cool gray and white, called "Luna Pearl".

      Makes sense!

      My preference is stainless steel, like commercial kitchens usually have, but granite is a great choice, especially for baking.

      Kitchen looks great so far BTW!

      posted in Water Closet
      1
      1337
    • RE: How to make bootable Win10 USB from Ubuntu

      @Mario-Jakovina said in How to make bootable Win10 USB from Ubuntu:

      @Pete-S said in How to make bootable Win10 USB from Ubuntu:

      Maybe ubuntu tried to mount it as soon as you made the partition.
      Found this on a quick search:
      "You should be able to right-click on the partition you want to set as bootable and click "Manage Flags", and then check the box for the boot flag."

      I unmounted partition.
      But I cannot "Manage flags" becuase it is Fat32 (and Linnux is missing some packages for it).

      When I write Win10 ISO image with "Disks" app, I also can't "Manage flags", as it is udf formatted partition

      OK, try and install the packages it complains about.

      Run in a terminal:
      sudo apt install dosfstools mtools

      posted in Platform and Category Issues
      1
      1337
    • Utility that can load the CPU & RAM?

      Is there a linux utility that I can run that will use X amount of RAM and Y amount of CPU?

      Basically I want something to test hypervisor behavior by having VMs consume different amount of resources.

      For example:
      loadgenerator 30% 2GB
      And the fictitious loadgenerator application will now consume 30% of the CPU and 2GB RAM.

      posted in IT Discussion linux
      1
      1337
    • RE: Alternative to never in stock Ubiquiti EdgeMax line

      @scottalanmiller said in Alternative to never in stock Ubiquiti EdgeMax line:

      @Pete-S said in Alternative to never in stock Ubiquiti EdgeMax line:

      I don't know if that is the case with Ubiquiti but some products in their line sure looks like it.
      Looking at the number of employees working at Ubiquiti versus their revenue, also suggests that (most?) of their products are not designed in-house. That's just speculation of course.

      Well the Edge line, and this is me guessing, is likely third party hardware that they buy (that's pretty easy) and they basically use an open source OS barely modified. They were half public about that when they started, so it kinda made sense with that line. No idea if they continued that with Unifi and others.

      Well, they started with RF-based products so they have that expertise in-house.

      It would make sense that their wifi products are developed by themselves and manufactured by OEMs while the rest are ODM products.

      That's the quickest way to expand the product range. Otherwise you need a ton of employees. From the info online they're only about 1000 employees worldwide.

      posted in IT Discussion
      1
      1337
    • RE: How to make bootable Win10 USB from Ubuntu

      @EddieJennings said in How to make bootable Win10 USB from Ubuntu:

      @Pete-S said in How to make bootable Win10 USB from Ubuntu:

      @EddieJennings said in How to make bootable Win10 USB from Ubuntu:

      @scottalanmiller said in How to make bootable Win10 USB from Ubuntu:

      @Mario-Jakovina said in How to make bootable Win10 USB from Ubuntu:

      What is the normal way to make bootable USB from Win10 image on Ubuntu?

      dd, I think. I've done this but it has been a while. I thought that the Disk Writer normally worked.

      dd is what I use most often. Use fdisk to delete the partitions on your USB. Then you'd have something like dd if=/path/to/iso of=/path/to/usb/dev bs=4M

      But the Win10 ISO file isn't bootable. It isn't a hybrid image like many linux distros have. So it won't work.

      I see. Truth be told, I replied without actually testing :(. I should know better than to assume what works for my various Linux ISOs would work for windows :).

      So true 🙂

      Well, Microsoft's idea is that you should use their Media Creation Tool to download and write to a USB or save as an ISO file. But to do that you need Windows. Catch 22.

      Problem with a lot of linux desktops are that they are too user friendly and will auto-mount and do stuff on their own. user_friendly != sysadmin_friendly

      posted in Platform and Category Issues
      1
      1337
    • RE: How to make bootable Win10 USB from Ubuntu

      @Mario-Jakovina said in How to make bootable Win10 USB from Ubuntu:

      @Pete-S said in How to make bootable Win10 USB from Ubuntu:

      I'll quote myself here 🙂
      But the steps would be:

      • Partition USB with a primary bootable FAT32 partition
      • Copy files from Win10 ISO onto the USB

      No special software needed. Can be done on any OS.

      I can make FAT32 primary partition with Gparted, but I cannot make it bootable with Gparted. It says:
      Unable to read the contents of this file system!
      Because of this some operations may be unavailable.
      The cause might be a missing software package.
      The following list of software packages is required for fat32 file system support: dosfstools, mtools.

      That's strange. Bootable or not is just a flag in the partition table. You shouldn't need any additional packages for that.

      Maybe ubuntu tried to mount it as soon as you made the partition.

      Found this on a quick search:
      "You should be able to right-click on the partition you want to set as bootable and click "Manage Flags", and then check the box for the boot flag."

      posted in Platform and Category Issues
      1
      1337
    • RE: How to make bootable Win10 USB from Ubuntu

      @EddieJennings said in How to make bootable Win10 USB from Ubuntu:

      @scottalanmiller said in How to make bootable Win10 USB from Ubuntu:

      @Mario-Jakovina said in How to make bootable Win10 USB from Ubuntu:

      What is the normal way to make bootable USB from Win10 image on Ubuntu?

      dd, I think. I've done this but it has been a while. I thought that the Disk Writer normally worked.

      dd is what I use most often. Use fdisk to delete the partitions on your USB. Then you'd have something like dd if=/path/to/iso of=/path/to/usb/dev bs=4M

      But the Win10 ISO file isn't bootable. It isn't a hybrid image like many linux distros have. So it won't work.

      posted in Platform and Category Issues
      1
      1337
    • RE: How to make bootable Win10 USB from Ubuntu

      I'll quote myself here 🙂
      But the steps would be:

      • Partition USB with a primary bootable FAT32 partition
      • Copy files from Win10 ISO onto the USB

      No special software needed. Can be done on any OS.


      @Pete-S said in Make a Bootable Windows 10 USB Installer from Fedora Linux:

      But in all honesty it's very easy to make a bootable windows installer USB drive manually. Just make a primary bootable FAT32 partition on the USB drive and copy the files from the ISO onto it. Done.

      You can copy more files onto the drive, for instance drivers or other software. If you do that, it makes sense to make a dd image of the entire thing when you're done. That way you can easily write a new USB drive with your custom files on it.

      posted in Platform and Category Issues
      1
      1337
    • RE: RojoLoco gets a new kitchen....

      @RojoLoco said in RojoLoco gets a new kitchen....:

      Just talked to the contractor, we are on schedule for granite countertop installation Monday!!! Which means we are looking at maybe Wednesday to start moving back into the kitchen!

      Also, stand by for photo dump...

      Any particular reason why you picked granite or was it the look that settled it?

      posted in Water Closet
      1
      1337
    • RE: Debian VM/cloud optimized kernel

      I don't know if ubuntu has a similar cloud kernel.

      Update: It looks like there is a linux-kvm kernel amongst others. Haven't tried it though.

      BTW, in Debian/Ubuntu and other distros the different kernels are often referred to as kernel flavors. Good to know if you want to search for them.

      posted in IT Discussion
      1
      1337
    • 1
    • 2
    • 8
    • 9
    • 10
    • 11
    • 12
    • 175
    • 176
    • 10 / 176